2023-11-07 23:47:14 +00:00
|
|
|
{lib, ...}: {
|
|
|
|
imports = [];
|
2023-10-18 15:04:30 +00:00
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "gha-root";
|
|
|
|
fsType = "tmpfs";
|
2023-11-07 23:47:14 +00:00
|
|
|
options = ["size=1G" "mode=755"];
|
2023-10-18 15:04:30 +00:00
|
|
|
};
|
|
|
|
fileSystems."/persist" = {
|
2024-11-29 10:55:58 +00:00
|
|
|
device = "/dev/disk/by-label/nixos";
|
2023-10-18 15:04:30 +00:00
|
|
|
fsType = "btrfs";
|
2023-11-07 23:47:14 +00:00
|
|
|
options = ["subvol=persist"];
|
2023-10-18 15:04:30 +00:00
|
|
|
neededForBoot = true;
|
|
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
2024-11-29 10:55:58 +00:00
|
|
|
device = "/dev/disk/by-label/boot";
|
2023-10-18 15:04:30 +00:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
fileSystems."/nix" = {
|
2024-11-29 10:55:58 +00:00
|
|
|
device = "/dev/disk/by-label/nixos";
|
2023-10-18 15:04:30 +00:00
|
|
|
fsType = "btrfs";
|
2023-11-07 23:47:14 +00:00
|
|
|
options = ["subvol=nix"];
|
2023-10-18 15:04:30 +00:00
|
|
|
};
|
|
|
|
|
2023-11-07 23:47:14 +00:00
|
|
|
swapDevices = [{device = "/dev/disk/by-uuid/e6e3ba6b-c9f5-4960-b56d-f49760d76a4a";}];
|
2023-10-18 15:04:30 +00:00
|
|
|
|
|
|
|
nix.settings.max-jobs = lib.mkDefault 4;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
}
|