diff --git a/nixosConfigurations/hosts/disko/mini-pc.nix b/nixosConfigurations/hosts/disko/mini-pc.nix old mode 100644 new mode 100755 index c5928ac..cd6f1de --- a/nixosConfigurations/hosts/disko/mini-pc.nix +++ b/nixosConfigurations/hosts/disko/mini-pc.nix @@ -2,24 +2,23 @@ disko.devices = { disk = { main = { - device = "/dev/mmcblk0"; + device = "/dev/sda"; type = "disk"; content = { type = "gpt"; partitions = { + #boot = { + # type = "EF02"; + # size = "1M"; + #; ESP = { + size = "500M"; type = "EF00"; - size = "512M"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; - }; - }; - swap = { - size = "2G"; - content = { - type = "swap"; + mountOptions = [ "umask=0077" ]; }; }; root = { @@ -30,6 +29,12 @@ mountpoint = "/"; }; }; + swap = { + size = "2048M"; + content = { + type = "swap"; + }; + }; }; }; }; diff --git a/nixosConfigurations/hosts/mini-pc.nix b/nixosConfigurations/hosts/mini-pc.nix index 872b745..985a444 100755 --- a/nixosConfigurations/hosts/mini-pc.nix +++ b/nixosConfigurations/hosts/mini-pc.nix @@ -19,6 +19,7 @@ let imports = with inputs; [ ./hardware/mini-pc.nix + ./disko/mini-pc.nix ./hardware/logitech.nix self.nixosModules.default ];