diff options
Diffstat (limited to 'hosts/pendrive/disko.nix')
| -rw-r--r-- | hosts/pendrive/disko.nix | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/hosts/pendrive/disko.nix b/hosts/pendrive/disko.nix new file mode 100644 index 0000000..24674b7 --- /dev/null +++ b/hosts/pendrive/disko.nix @@ -0,0 +1,84 @@ +{ + disko.devices = { + disk = { + main = { + type = "disk"; + device = "/dev/sda"; + content = { + type = "gpt"; + partitions = { + ESP = { + size = "1G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + luks = { + size = "75%"; + content = { + type = "luks"; + name = "crypted"; + settings = { + allowDiscards = true; + }; + content = { + type = "btrfs"; + extraArgs = [ "-f" ]; + subvolumes = { + "@" = { + mountpoint = "/"; + mountOptions = [ + "compress=zstd:1" + "noatime" + ]; + }; + "@home" = { + mountpoint = "/home"; + mountOptions = [ + "compress=zstd:1" + "noatime" + ]; + }; + "@nix" = { + mountpoint = "/nix"; + mountOptions = [ + "compress=zstd:1" + "noatime" + ]; + }; + "@log" = { + mountpoint = "/var/log"; + mountOptions = [ + "compress=zstd:1" + "noatime" + ]; + }; + "@swap" = { + mountpoint = "/.swapvol"; + mountOptions = [ + "nodatacow" + "noatime" + ]; + }; + }; + }; + }; + }; + shared = { + size = "100%"; + content = { + type = "filesystem"; + format = "exfat"; + mountpoint = "/shared"; + }; + }; + }; + }; + }; + }; + }; +} |
