tangled
alpha
login
or
join now
wiro.world
/
dotfiles
2
fork
atom
yep, more dotfiles
2
fork
atom
overview
issues
1
pulls
1
pipelines
feat: add srvos input
wiro.world
11 months ago
a11fc3b0
0cbf1b9a
+36
-2
3 changed files
expand all
collapse all
unified
split
flake.lock
flake.nix
nixos
profiles
server.nix
+21
flake.lock
reviewed
···
468
468
"nixos-hardware": "nixos-hardware",
469
469
"nixpkgs": "nixpkgs",
470
470
"nixpkgs-unstable": "nixpkgs-unstable",
471
471
+
"srvos": "srvos",
471
472
"wakatime-ls": "wakatime-ls"
472
473
}
473
474
},
···
552
553
"original": {
553
554
"owner": "oxalica",
554
555
"repo": "rust-overlay",
556
556
+
"type": "github"
557
557
+
}
558
558
+
},
559
559
+
"srvos": {
560
560
+
"inputs": {
561
561
+
"nixpkgs": [
562
562
+
"nixpkgs"
563
563
+
]
564
564
+
},
565
565
+
"locked": {
566
566
+
"lastModified": 1743041209,
567
567
+
"narHash": "sha256-ANo3g355dNIF0Rtv3eLrJPu1h58Pn6O6mK0oBrcBq8A=",
568
568
+
"owner": "nix-community",
569
569
+
"repo": "srvos",
570
570
+
"rev": "7a4dc5c1112b2cde72ab05f70f522cfecb9c48d1",
571
571
+
"type": "github"
572
572
+
},
573
573
+
"original": {
574
574
+
"owner": "nix-community",
575
575
+
"repo": "srvos",
555
576
"type": "github"
556
577
}
557
578
},
+4
flake.nix
reviewed
···
20
20
21
21
nixos-hardware.url = "github:nixos/nixos-hardware";
22
22
23
23
+
srvos.url = "github:nix-community/srvos";
24
24
+
# srvos.inputs.nixpkgs.follows = "srvos/nixpkgs";
25
25
+
srvos.inputs.nixpkgs.follows = "nixpkgs";
26
26
+
23
27
# ——— Packages
24
28
git-leave.url = "github:mrnossiom/git-leave";
25
29
git-leave.inputs.nixpkgs.follows = "nixpkgs";
+11
-2
nixos/profiles/server.nix
reviewed
···
1
1
-
{ ...
1
1
+
{ self
2
2
+
, ...
2
3
}:
3
4
4
5
let
6
6
+
inherit (self.inputs) srvos;
7
7
+
5
8
ext-if = "eth0";
6
9
7
10
external-ip6 = "2a01:4f8:c2c:76d2::1";
···
9
12
external-gw6 = "fe80::1";
10
13
in
11
14
{
12
12
-
imports = [ ];
15
15
+
imports = [
16
16
+
srvos.nixosModules.server
17
17
+
srvos.nixosModules.hardware-hetzner-cloud
18
18
+
srvos.nixosModules.mixins-terminfo
19
19
+
];
13
20
14
21
config = {
15
22
boot.loader.grub.enable = true;
···
17
24
18
25
# Single network card is `eth0`
19
26
networking.usePredictableInterfaceNames = false;
27
27
+
28
28
+
networking.nameservers = [ "2001:4860:4860::8888" "2001:4860:4860::8844" ];
20
29
21
30
networking = {
22
31
interfaces.${ext-if} = {