diff --git a/profiles/nixos/default.nix b/profiles/nixos/default.nix index 36abcd2..7005486 100644 --- a/profiles/nixos/default.nix +++ b/profiles/nixos/default.nix @@ -4,9 +4,10 @@ user, ... }: { - imports = []; + imports = [ + ./disks.nix + ]; - # Override Darwin-style gc.interval with NixOS systemd format nix.gc = { automatic = true; dates = "weekly"; diff --git a/profiles/nixos/disks.nix b/profiles/nixos/disks.nix new file mode 100644 index 0000000..91ac5dd --- /dev/null +++ b/profiles/nixos/disks.nix @@ -0,0 +1,32 @@ +_: { + disko.devices = { + disk = { + vdb = { + device = "/dev/%DISK%"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + ESP = { + type = "EF00"; + size = "100M"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; +}