From 6975866817064eb2edab6825b4905ca7500cf813 Mon Sep 17 00:00:00 2001 From: adikro Date: Sun, 25 Jan 2026 17:01:14 +0100 Subject: pendrive setup --- hosts/pendrive/disko.nix | 84 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 hosts/pendrive/disko.nix (limited to 'hosts/pendrive/disko.nix') 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"; + }; + }; + }; + }; + }; + }; + }; +} -- cgit v1.3