diff options
| author | Preston Pan <ret2pop@gmail.com> | 2025-09-12 19:32:06 -0700 |
|---|---|---|
| committer | Preston Pan <ret2pop@gmail.com> | 2025-09-12 19:32:06 -0700 |
| commit | cae70df061d9fc4f33a2da66a21c86eb3eb1fa3b (patch) | |
| tree | baa5edf5af062f3a28647f318165d196b0b7093d /nix/disko/btrfs-simple.nix | |
| parent | c15492d8aa38b7125dc6574c08f6a765aad44fcb (diff) | |
update before new lock file, working on VPS
Diffstat (limited to 'nix/disko/btrfs-simple.nix')
| -rw-r--r-- | nix/disko/btrfs-simple.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nix/disko/btrfs-simple.nix b/nix/disko/btrfs-simple.nix new file mode 100644 index 0000000..08fafd4 --- /dev/null +++ b/nix/disko/btrfs-simple.nix @@ -0,0 +1,47 @@ +{ lib, config, ... }: +let + spec = { + disko.devices = { + disk = { + main = { + type = "disk"; + device = config.monorepo.vars.device; + content = { + type = "gpt"; + partitions = { + ESP = { + priority = 1; + name = "ESP"; + start = "1M"; + end = "128M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + root = { + size = "100%"; + content = { + type = "btrfs"; + extraArgs = [ "-f" ]; # Override existing partition + mountpoint = "/"; + mountOptions = [ + "compress=zstd" + "noatime" + ]; + }; + }; + }; + }; + }; + }; + }; +}; +in +{ + monorepo.vars.diskoSpec = spec; + disko.devices = spec.disko.devices; +} |
