diff --git a/hosts/siit-dc/configuration.nix b/hosts/siit-dc/configuration.nix index eb1a09a..87839a3 100644 --- a/hosts/siit-dc/configuration.nix +++ b/hosts/siit-dc/configuration.nix @@ -3,7 +3,6 @@ imports = [ ../../shared/base.nix ../../shared/hardware/vm.nix - ../../shared/disko/hetzner-ext4.nix ../../servers/siit-dc.nix ]; diff --git a/hosts/siit-dc/state.nix b/hosts/siit-dc/state.nix index ef43817..4d9bc00 100644 --- a/hosts/siit-dc/state.nix +++ b/hosts/siit-dc/state.nix @@ -19,6 +19,16 @@ boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; + fileSystems."/" = { + device = "/dev/disk/by-uuid/b124e8c9-50d0-4254-bc7d-2784db2f8175"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/95c196c6-803d-4e68-9d31-3843a5260319"; + fsType = "ext4"; + }; + networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; diff --git a/shared/disko/hetzner-ext4.nix b/shared/disko/hetzner-ext4.nix deleted file mode 100644 index d6db7b8..0000000 --- a/shared/disko/hetzner-ext4.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ - disko.devices = { - disk = { - main = { - device = "/dev/sda"; - type = "disk"; - content = { - type = "gpt"; - partitions = { - boot = { - name = "boot"; - type = "EF02"; - size = "1M"; - }; - ESP = { - name = "ESP"; - type = "EF00"; - size = "512M"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ "umask=0077" ]; - }; - }; - root = { - name = "nixos"; - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; - }; -}