nixConfig/nixos/machines/ghatanothoa/hardware-configuration.nix

31 lines
797 B
Nix
Raw Normal View History

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" = {
device = "/dev/disk/by-uuid/e0a160ef-7d46-4705-9152-a6b602898136";
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" = {
device = "/dev/disk/by-uuid/19da7f3a-69da-4fa8-bb68-b355d7697ba7";
fsType = "ext4";
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/e0a160ef-7d46-4705-9152-a6b602898136";
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";
}