From fd31a7a778274470212d6c098db8311579946d6d Mon Sep 17 00:00:00 2001 From: spl3g Date: Tue, 2 Sep 2025 20:17:33 +0300 Subject: feat: add disk-config to the laptop config --- nixos/laptop/configuration.nix | 1 + nixos/laptop/disk-config.nix | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 nixos/laptop/disk-config.nix (limited to 'nixos/laptop') diff --git a/nixos/laptop/configuration.nix b/nixos/laptop/configuration.nix index 305c997..39d6ad1 100644 --- a/nixos/laptop/configuration.nix +++ b/nixos/laptop/configuration.nix @@ -13,6 +13,7 @@ ../nixosModules/powerbutton.nix ../nixosModules/docker.nix ../nixosModules/greetd.nix + ./disk-config.nix ]; # from nixosModules diff --git a/nixos/laptop/disk-config.nix b/nixos/laptop/disk-config.nix new file mode 100644 index 0000000..825a147 --- /dev/null +++ b/nixos/laptop/disk-config.nix @@ -0,0 +1,37 @@ +{ + disko.devices = { + disk = { + main = { + device = "/dev/nvme0n1"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + size = "1M"; + type = "EF02"; + }; + ESP = { + size = "1G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; +} -- cgit v1.2.3