diff options
Diffstat (limited to 'nix-personal/hosts')
-rw-r--r-- | nix-personal/hosts/puppy.nix | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/nix-personal/hosts/puppy.nix b/nix-personal/hosts/puppy.nix new file mode 100644 index 0000000..948b243 --- /dev/null +++ b/nix-personal/hosts/puppy.nix @@ -0,0 +1,71 @@ +{ + modulesPath, + lib, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + (modulesPath + "/profiles/qemu-guest.nix") + ../profiles/common.nix + ../profiles/landing + ]; + + disko.devices = { + disk.disk1 = { + device = lib.mkDefault "/dev/sda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + name = "boot"; + size = "1M"; + type = "EF02"; + }; + esp = { + name = "ESP"; + size = "500M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + swap = { + name = "swap"; + size = "2G"; + content = { + type = "swap"; + }; + }; + root = { + name = "root"; + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + mountOptions = [ + "defaults" + ]; + }; + }; + }; + }; + }; + }; + + boot.loader.grub = { + # no need to set devices, disko will add all devices that have a EF02 partition to the list already + # devices = [ ]; + efiSupport = true; + efiInstallAsRemovable = true; + }; + + networking.hostName = "puppy"; + deployment = { + targetHost = "puppy.girlth.ing"; + buildOnTarget = true; + }; +} |