forked from Fachschaft/nixConfig
31 lines
677 B
Nix
31 lines
677 B
Nix
|
{lib, ...}: {
|
||
|
imports = [];
|
||
|
|
||
|
fileSystems."/" = {
|
||
|
device = "gha-root";
|
||
|
fsType = "tmpfs";
|
||
|
options = ["size=1G" "mode=755"];
|
||
|
};
|
||
|
fileSystems."/persist" = {
|
||
|
device = "/dev/disk/by-uuid/"; #TODO
|
||
|
fsType = "btrfs";
|
||
|
options = ["subvol=persist"];
|
||
|
neededForBoot = true;
|
||
|
};
|
||
|
fileSystems."/boot" = {
|
||
|
device = "/dev/disk/by-uuid/"; #TODO
|
||
|
fsType = "ext4";
|
||
|
};
|
||
|
fileSystems."/nix" = {
|
||
|
device = "/dev/disk/by-uuid/"; #TODO
|
||
|
fsType = "btrfs";
|
||
|
options = ["subvol=nix"];
|
||
|
};
|
||
|
|
||
|
swapDevices = [{device = "/dev/disk/by-uuid/";}]; #TODO
|
||
|
|
||
|
nix.settings.max-jobs = lib.mkDefault 4;
|
||
|
|
||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
|
}
|