From c19dc0924481c7edf4938f5aa105f481a787a30e Mon Sep 17 00:00:00 2001 From: Aria Date: Mon, 11 Dec 2023 19:52:21 +0000 Subject: refactor(nix-personal): change folder structure --- nix-personal/hosts/puppy.nix | 71 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 nix-personal/hosts/puppy.nix (limited to 'nix-personal/hosts/puppy.nix') 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; + }; +} -- cgit v1.2.3