From 39eb0b807403c7745c2edc6024e0e713155662bc Mon Sep 17 00:00:00 2001 From: tzlil Date: Sun, 12 Mar 2023 16:29:17 +0200 Subject: bunch of stuff --- hosts/disko.nix | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 hosts/disko.nix (limited to 'hosts/disko.nix') diff --git a/hosts/disko.nix b/hosts/disko.nix deleted file mode 100644 index 26d1849..0000000 --- a/hosts/disko.nix +++ /dev/null @@ -1,56 +0,0 @@ -# Example to create a bios compatible gpt partition -{ - lib, - disks, - ... -}: { - disk = lib.genAttrs disks (dev: { - device = dev; - type = "disk"; - content = { - type = "table"; - format = "gpt"; - partitions = [ - { - type = "partition"; - name = "boot"; - start = "1MiB"; - end = "100MiB"; - bootable = true; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - } - { - name = "nix"; - type = "partition"; - start = "128MiB"; - end = "100%"; - content = { - type = "btrfs"; - extraArgs = "-f"; # Override existing partition - subvolumes = { - "/" = { - mountOptions = ["noatime" "compress=zstd"]; - }; - }; - }; - } - ]; - }; - }); - - nodev = { - "/" = { - fsType = "tmpfs"; - mountOptions = [ - "noexec" - "defaults" - "size=2G" - "mode=755" - ]; - }; - }; -} -- cgit 1.4.1