From cae70df061d9fc4f33a2da66a21c86eb3eb1fa3b Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 12 Sep 2025 19:32:06 -0700 Subject: update before new lock file, working on VPS --- nix/disko/btrfs-simple.nix | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 nix/disko/btrfs-simple.nix (limited to 'nix/disko') 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; +} -- cgit v1.3