From fb222bc1a43669e286359f39f01d9ea3aca8b190 Mon Sep 17 00:00:00 2001 From: ahtlon Date: Fri, 24 Jan 2025 15:08:24 +0100 Subject: [PATCH] [disko] rm btrfs-laptop.nix --- machines/modules/disko/btrfs-laptop.nix | 63 ------------------------- 1 file changed, 63 deletions(-) delete mode 100644 machines/modules/disko/btrfs-laptop.nix diff --git a/machines/modules/disko/btrfs-laptop.nix b/machines/modules/disko/btrfs-laptop.nix deleted file mode 100644 index eef69315..00000000 --- a/machines/modules/disko/btrfs-laptop.nix +++ /dev/null @@ -1,63 +0,0 @@ -{ config, self, inputs, ... }: - -{ - imports = [ - inputs.disko.nixosModules.disko - ]; - - # https://github.com/nix-community/disko/blob/master/example/luks-btrfs-subvolumes.nix - disko.devices = { - disk = { - main = { - type = "disk"; - # When using disko-install, we will overwrite this value from the commandline - device = "/dev/disk/by-id/some-disk-id"; - content = { - type = "gpt"; - partitions = { - ESP = { - size = "512M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ "umask=0077" ]; - }; - }; - luks = { - size = "100%"; - content = { - type = "luks"; - name = "crypted"; - passwordFile = /tmp/secret.key; # Interactive - content = { - type = "btrfs"; - extraArgs = [ "-f" ]; - subvolumes = { - "/root" = { - mountpoint = "/"; - mountOptions = [ "compress=zstd" "noatime" ]; - }; - "/home" = { - mountpoint = "/home"; - mountOptions = [ "compress=zstd" "noatime" ]; - }; - "/nix" = { - mountpoint = "/nix"; - mountOptions = [ "compress=zstd" "noatime" ]; - }; - "/swap" = { - mountpoint = "/.swapvol"; - swap.swapfile.size = "20M"; - }; - }; - }; - }; - }; - }; - }; - }; - }; - }; -}