nixConfig/nixos/machines/bragi/hardware-configuration.nix
2024-01-07 15:16:15 +01:00

32 lines
859 B
Nix

{lib, ...}: {
imports = [];
fileSystems."/" = {
device = "gha-root";
fsType = "tmpfs";
options = ["size=1G" "mode=755"];
};
fileSystems."/persist" = {
device = "/dev/disk/by-uuid/b75e52a1-deee-45d4-b958-086bdaeb4fa4"; #TODO
fsType = "btrfs";
options = ["subvol=persist"];
neededForBoot = true;
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6b86ec51-b854-4227-9b05-c8e15f7b2e62"; #TODO
fsType = "ext4";
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/b75e52a1-deee-45d4-b958-086bdaeb4fa4"; #TODO
fsType = "btrfs";
options = ["subvol=nix"];
};
# swapDevices = [{device = "/dev/disk/by-uuid/";}]; #TODO
boot.loader.grub.device = "/dev/disk/by-id/wwn-0x50014ee2b202856e";
nix.settings.max-jobs = lib.mkDefault 4;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}