From c1d9af57156f3c95590d9a12c394ee064df9696e Mon Sep 17 00:00:00 2001 From: adikro Date: Sat, 20 Dec 2025 15:25:38 +0100 Subject: added disko config for laptop, added storage and memory modules --- hosts/laptop/disko.nix | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'hosts/laptop') 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"; + }; + }; + }; + }; + }; + }; + }; + }; +} -- cgit v1.3