diff --git a/infra/common/nixos/hardware.nix b/infra/common/nixos/hardware.nix index c01ced2f..40a43cbd 100644 --- a/infra/common/nixos/hardware.nix +++ b/infra/common/nixos/hardware.nix @@ -22,41 +22,4 @@ }; }; - disko.devices.disk.main = { - device = "/dev/sda"; - type = "disk"; - - content = { - type = "gpt"; - - partitions = { - MBR = { - priority = 0; - size = "1M"; - type = "EF02"; - }; - - ESP = { - priority = 1; - size = "500M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - - root = { - priority = 2; - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; } diff --git a/infra/common/resource.nix b/infra/common/resource.nix index 4606ddf4..1c2bd593 100644 --- a/infra/common/resource.nix +++ b/infra/common/resource.nix @@ -33,7 +33,7 @@ in nixos.module = { imports = [ inputs.agenix.nixosModules.default - inputs.disko.nixosModules.default + "${inputs.nixpkgs}/nixos/modules/virtualisation/proxmox-image.nix" ./options.nix ./nixos ];