From 16143e4821cbadcf6f3076ece71940eeb85b800e Mon Sep 17 00:00:00 2001 From: Leonardo Date: Tue, 17 Mar 2026 10:38:53 +0100 Subject: nixos-anywhere config --- systems/nixos-anywhere/disk-config.nix | 57 ++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 systems/nixos-anywhere/disk-config.nix (limited to 'systems/nixos-anywhere/disk-config.nix') diff --git a/systems/nixos-anywhere/disk-config.nix b/systems/nixos-anywhere/disk-config.nix new file mode 100644 index 0000000..fd6371c --- /dev/null +++ b/systems/nixos-anywhere/disk-config.nix @@ -0,0 +1,57 @@ +{ lib, ... }: { + disko.devices = { + disk.disk1 = { + device = lib.mkDefault "/dev/sda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + name = "boot"; + size = "1M"; + type = "EF02"; + }; + + esp = { + name = "ESP"; + size = "500M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + + root = { + name = "root"; + size = "100%"; + content = { + type = "lvm_pv"; + vg = "pool"; + }; + }; + }; + }; + }; + + lvm_vg = { + pool = { + type = "lvm_vg"; + lvs = { + root = { + size = "100%FREE"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + mountOptions = [ + "defaults" + ]; + }; + }; + }; + }; + }; + }; +} -- cgit v1.3