diff options
Diffstat (limited to 'hosts/meowbook/disks.nix')
| -rw-r--r-- | hosts/meowbook/disks.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/hosts/meowbook/disks.nix b/hosts/meowbook/disks.nix new file mode 100644 index 0000000..50fb894 --- /dev/null +++ b/hosts/meowbook/disks.nix @@ -0,0 +1,56 @@ +{ config, ... }: +{ + disko.devices.disk.main = { + content = { + partitions = { + ESP = { + content = { + format = "vfat"; + mountOptions = [ "umask=0077" ]; + mountpoint = "/boot"; + type = "filesystem"; + }; + + size = "512M"; + type = "EF00"; + }; + + luks = { + content = { + content = { + extraArgs = [ "-f" ]; + subvolumes = { + "/home" = { + mountOptions = [ "noatime" ]; + mountpoint = "/home"; + }; + + "/nix" = { + mountOptions = [ "noatime" ]; + mountpoint = "/nix"; + }; + + "/root" = { + mountOptions = [ "noatime" ]; + mountpoint = "/"; + }; + }; + + type = "btrfs"; + }; + + name = "root"; + type = "luks"; + }; + + size = "100%"; + }; + }; + + type = "gpt"; + }; + + device = "/dev/nvme0n1"; + type = "disk"; + }; +} |
