diff options
| author | adikro <adikro@disroot.org> | 2026-01-25 17:01:14 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-01-25 17:01:14 +0100 |
| commit | 6975866817064eb2edab6825b4905ca7500cf813 (patch) | |
| tree | 4f07153d43d78c539b87b63a6afb0a04f60b465e /hosts/pendrive/disko.nix | |
| parent | b0bd96459ff81aaf1a4e768b1a6222cdd86026f9 (diff) | |
pendrive setup
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"; + }; + }; + }; + }; + }; + }; + }; +} |
