tangled
alpha
login
or
join now
okk.moe
/
homelab
1
fork
atom
🏡 my personal home lab
1
fork
atom
overview
issues
pulls
pipelines
update machines
okk.moe
2 years ago
2aa2cfc3
cbaf70c5
verified
This commit was signed with the committer's
known signature
.
okk.moe
SSH Key Fingerprint:
SHA256:cVofqXFhnCrIkqo1ixFFvbU8h8MTjljdVwg5pBQ7wxY=
+11
-27
5 changed files
expand all
collapse all
unified
split
.gitignore
common
common.nix
flake.nix
machines
nix-node-1.nix
nix-node-2.nix
+2
.gitignore
···
1
1
+
keys/
2
2
+
nixos.*
+5
-1
common/common.nix
···
3
3
{
4
4
nixpkgs.config.allowUnfree = true;
5
5
6
6
+
nix.settings.experimental-features = [ "nix-command" "flakes" ];
7
7
+
6
8
# Set your time zone.
7
9
time.timeZone = "Europe/Zurich";
8
10
···
12
14
];
13
15
};
14
16
15
15
-
environment.systemPackages = with pkgs; [ vim ];
17
17
+
environment.systemPackages = with pkgs; [ vim btop ];
18
18
+
19
19
+
networking.networkmanager.enable = true;
16
20
17
21
# Enable the OpenSSH daemon.
18
22
services.openssh = {
-2
flake.nix
···
37
37
self.nixosConfigurations.nix-node-2;
38
38
};
39
39
};
40
40
-
41
40
};
42
42
-
43
41
};
44
42
}
+2
-12
machines/nix-node-1.nix
···
1
1
-
{ config, lib, pkgs, ... }@args:
1
1
+
{ config, lib, pkgs, ... }:
2
2
3
3
{
4
4
imports = [
···
7
7
../common/nomad.nix
8
8
];
9
9
10
10
-
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
11
11
-
boot.loader.grub.enable = false;
12
12
-
# Enables the generation of /boot/extlinux/extlinux.conf
13
13
-
boot.loader.generic-extlinux-compatible.enable = true;
14
14
-
15
15
-
nix.settings.experimental-features = [ "nix-command" "flakes" ];
16
16
-
17
17
-
networking = {
18
18
-
hostName = "nix-node-1";
19
19
-
networkmanager.enable = true;
20
20
-
};
10
10
+
networking.hostName = "nix-node-1";
21
11
22
12
system.stateVersion = "23.11";
23
13
}
+2
-12
machines/nix-node-2.nix
···
1
1
-
{ config, lib, pkgs, ... }@args:
1
1
+
{ config, lib, pkgs, ... }:
2
2
3
3
{
4
4
imports = [
···
7
7
../common/nomad.nix
8
8
];
9
9
10
10
-
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
11
11
-
boot.loader.grub.enable = false;
12
12
-
# Enables the generation of /boot/extlinux/extlinux.conf
13
13
-
boot.loader.generic-extlinux-compatible.enable = true;
14
14
-
15
15
-
nix.settings.experimental-features = [ "nix-command" "flakes" ];
16
16
-
17
17
-
networking = {
18
18
-
hostName = "nix-node-2";
19
19
-
networkmanager.enable = true;
20
20
-
};
10
10
+
networking.hostName = "nix-node-2";
21
11
22
12
system.stateVersion = "23.11";
23
13
}