diff options
Diffstat (limited to 'hosts/laptop/disko.nix')
| -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"; + }; + }; + }; + }; + }; + }; + }; + }; +} |
