diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-03-17 16:21:33 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-03-17 16:21:33 -0400 |
| commit | ce19b701046c064a1eb39098d8537b2c4964a86e (patch) | |
| tree | 8c42a1392d36132803a2ee4ecb4d2c9150f72296 /hosts/meowbook/disks.nix | |
| parent | 8848e53815fe12ffa3998c0a4bbcf2178d6b00e8 (diff) | |
start rewrite
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"; + }; +} |
