27 lines
581 B
Nix
27 lines
581 B
Nix
{
|
|
config,
|
|
factsGenerator,
|
|
clanLib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./disko-config.nix
|
|
./hardware-configuration.nix
|
|
./graphics.nix
|
|
];
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.tmp.useTmpfs = true; # make /tmp a tmpfs (performance!)
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
clan.core.facts.services.zfs = factsGenerator.zfs { };
|
|
networking.hostId = toString config.clan.core.facts.services.zfs.public."zfs.hostId".value;
|
|
services.zfs = {
|
|
autoSnapshot.enable = true;
|
|
autoScrub.enable = true;
|
|
};
|
|
|
|
}
|