diff options
| author | andromeda <andromeda@lenovo> | 2026-01-10 08:59:54 +0100 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-01-10 08:59:54 +0100 |
| commit | 411ee0c027b44d5067839b4abf8326656dd2b22c (patch) | |
| tree | 19eb4eae0c741323129987089033c7d7adf06174 /modules/nixos/disko | |
| parent | aec328ce9364c640656b339f81e16cf885499f2a (diff) | |
add remote disko and some other things
Diffstat (limited to 'modules/nixos/disko')
| -rw-r--r-- | modules/nixos/disko/remote.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/modules/nixos/disko/remote.nix b/modules/nixos/disko/remote.nix new file mode 100644 index 0000000..0b2e726 --- /dev/null +++ b/modules/nixos/disko/remote.nix @@ -0,0 +1,64 @@ +{ + disko.devices = { + disk = { + disk1 = { + device = "/dev/sda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + # legacy boot + boot = { + name = "boot"; + size = "1M"; + type = "EF02"; + }; + + # efi boot + esp = { + name = "ESP"; + size = "512M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + + # btrfs + # root is on nodev + root = { + size = "100%"; + content = { + extraArgs = ["-f"]; # internet told me to, works + type = "btrfs"; + subvolumes = { + # nix store + "/nix" = { + mountpoint = "/nix"; + }; + + # persistant directory + "/persist" = { + mountpoint = "/persist"; + }; + }; + }; + }; + }; + }; + }; + }; + nodev = { + # root + "/" = { + fsType = "tmpfs"; + mountOptions = [ + "defaults" + "mode=755" # stops security complaints + ]; + }; + }; + }; +} |
