diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 15:25:38 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 15:25:38 +0100 |
| commit | c1d9af57156f3c95590d9a12c394ee064df9696e (patch) | |
| tree | 7e515761590c510c30329ef8548c7d84a8e95aaa /hosts/laptop | |
| parent | 791bc419b6dac7c70951981ef6b34cdf85828470 (diff) | |
added disko config for laptop, added storage and memory modules
Diffstat (limited to 'hosts/laptop')
| -rw-r--r-- | hosts/laptop/disko.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/hosts/laptop/disko.nix b/hosts/laptop/disko.nix index e69de29..87c7e82 100644 --- a/hosts/laptop/disko.nix +++ b/hosts/laptop/disko.nix @@ -0,0 +1,51 @@ +{ + disko.devices = { + main = { + type = "disk"; + device = "/dev/nvme0n1"; + content = { + type = "gpt"; + partitions = { + ESP = { + size = "512M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + fedora = { + + }; + root = { + size = "100%"; + content = { + type = "btrfs"; + extraArgs = [ "-f" ]; + subvolumes = { + "/" = { + mountpoint = "/"; + mountOptions = [ "noatime" ]; + }; + "/nix" = { + mountpoint = "/nix"; + mountOptions = [ "compress=zstd:1" "noatime" ]; + }; + "/home" = { + mountpoint = "/home"; + mountOptions = [ "noatime" ]; + }; + "/swap" = { + mountpoint = "/.swapvol/swapfile"; + swap.swapfile.size = "8G"; + }; + }; + }; + }; + }; + }; + }; + }; +} |
