🏡 my personal home lab

update machines

okk.moe 2aa2cfc3 cbaf70c5

verified
+11 -27
+2
.gitignore
··· 1 + keys/ 2 + nixos.*
+5 -1
common/common.nix
··· 3 3 { 4 4 nixpkgs.config.allowUnfree = true; 5 5 6 + nix.settings.experimental-features = [ "nix-command" "flakes" ]; 7 + 6 8 # Set your time zone. 7 9 time.timeZone = "Europe/Zurich"; 8 10 ··· 12 14 ]; 13 15 }; 14 16 15 - environment.systemPackages = with pkgs; [ vim ]; 17 + environment.systemPackages = with pkgs; [ vim btop ]; 18 + 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 - 41 40 }; 42 - 43 41 }; 44 42 }
+2 -12
machines/nix-node-1.nix
··· 1 - { config, lib, pkgs, ... }@args: 1 + { config, lib, pkgs, ... }: 2 2 3 3 { 4 4 imports = [ ··· 7 7 ../common/nomad.nix 8 8 ]; 9 9 10 - # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) 11 - boot.loader.grub.enable = false; 12 - # Enables the generation of /boot/extlinux/extlinux.conf 13 - boot.loader.generic-extlinux-compatible.enable = true; 14 - 15 - nix.settings.experimental-features = [ "nix-command" "flakes" ]; 16 - 17 - networking = { 18 - hostName = "nix-node-1"; 19 - networkmanager.enable = true; 20 - }; 10 + networking.hostName = "nix-node-1"; 21 11 22 12 system.stateVersion = "23.11"; 23 13 }
+2 -12
machines/nix-node-2.nix
··· 1 - { config, lib, pkgs, ... }@args: 1 + { config, lib, pkgs, ... }: 2 2 3 3 { 4 4 imports = [ ··· 7 7 ../common/nomad.nix 8 8 ]; 9 9 10 - # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) 11 - boot.loader.grub.enable = false; 12 - # Enables the generation of /boot/extlinux/extlinux.conf 13 - boot.loader.generic-extlinux-compatible.enable = true; 14 - 15 - nix.settings.experimental-features = [ "nix-command" "flakes" ]; 16 - 17 - networking = { 18 - hostName = "nix-node-2"; 19 - networkmanager.enable = true; 20 - }; 10 + networking.hostName = "nix-node-2"; 21 11 22 12 system.stateVersion = "23.11"; 23 13 }