diff --git a/hosts/igor/default.nix b/hosts/igor/default.nix index 31ab701..c0edc6b 100644 --- a/hosts/igor/default.nix +++ b/hosts/igor/default.nix @@ -13,36 +13,35 @@ ../../modules/timezone.nix ../../modules/keybase.nix ../../modules/ssh.nix + ../../modules/tailscale ./disko-config.nix + ./hardware-configuration.nix ]; - config.networking = - let - extIface = "ens3"; - in - { - hostName = "igor"; - domain = "failco.de"; - wireless.enable = false; - useDHCP = false; - enableIPv6 = false; - interfaces.${extIface} = { - ipv4.addresses = [ - { - address = "192.168.0.2"; - prefixLength = 24; - } - ]; - }; - defaultGateway = "192.168.0.1"; - nameservers = [ - "192.168.0.1" - "1.1.1.1" - "8.8.8.8" + config.networking = { + hostName = "igor"; + domain = "failco.de"; + wireless.enable = false; + useDHCP = false; + enableIPv6 = false; + networkmanager.enable = true; + interfaces.eth0 = { + ipv4.addresses = [ + { + address = "192.168.178.2"; + prefixLength = 24; + } ]; - - firewall.enable = true; }; + defaultGateway = "192.168.178.1"; + nameservers = [ + "192.168.178.1" + "1.1.1.1" + "8.8.8.8" + ]; + + firewall.enable = true; + }; config.security.sudo = { enable = true; @@ -72,5 +71,5 @@ config.programs.zsh.enable = true; - config.system.stateVersion = "24.05"; + config.system.stateVersion = "24.11"; } diff --git a/hosts/igor/disko-config.nix b/hosts/igor/disko-config.nix index cd3c4aa..531b8d0 100644 --- a/hosts/igor/disko-config.nix +++ b/hosts/igor/disko-config.nix @@ -2,10 +2,14 @@ disko.devices = { disk.main = { type = "disk"; - device = "/dev/mmcblk0"; + device = "/dev/sda"; content = { type = "gpt"; partitions = { + boot = { + size = "1M"; + type = "EF02"; + }; ESP = { priority = 1; name = "ESP"; @@ -26,18 +30,32 @@ extraArgs = [ "-f" ]; subvolumes = { - "/rootfs" = { mountpoint = "/"; }; + "/rootfs" = { + mountpoint = "/"; + mountOptions = [ + "compress=zstd" + "noatime" + ]; + }; "/home" = { - mountOptions = [ "compress=zstd" ]; + mountOptions = [ + "compress=zstd" + "noatime" + ]; mountpoint = "/home"; }; "/nix" = { - mountOptions = [ "compress=zstd" "noatime" ]; + mountOptions = [ + "compress=zstd" + "noatime" + ]; mountpoint = "/nix"; }; "/swap" = { mountpoint = "/.swapvol"; - swap = { swapfile.size = "2G"; }; + swap = { + swapfile.size = "2G"; + }; }; }; }; diff --git a/hosts/igor/hardware-configuration.nix b/hosts/igor/hardware-configuration.nix new file mode 100644 index 0000000..5007365 --- /dev/null +++ b/hosts/igor/hardware-configuration.nix @@ -0,0 +1,10 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + +}