2024-08-29 03:26:04 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
factsGenerator,
|
|
|
|
clanLib,
|
|
|
|
...
|
|
|
|
}:
|
2024-03-02 21:19:12 +01:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./disko-config.nix
|
|
|
|
./hardware-configuration.nix
|
2024-08-17 19:01:35 +02:00
|
|
|
./graphics.nix
|
2024-03-02 21:19:12 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-05-29 20:16:04 +02:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
2024-08-08 19:25:19 +02:00
|
|
|
|
2024-03-02 21:19:12 +01:00
|
|
|
boot.tmp.useTmpfs = true; # make /tmp a tmpfs (performance!)
|
|
|
|
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
2024-06-19 13:19:55 +02:00
|
|
|
clan.core.facts.services.zfs = factsGenerator.zfs { };
|
|
|
|
networking.hostId = toString config.clan.core.facts.services.zfs.public."zfs.hostId".value;
|
2024-04-10 18:16:51 +02:00
|
|
|
services.zfs = {
|
|
|
|
autoSnapshot.enable = true;
|
|
|
|
autoScrub.enable = true;
|
|
|
|
};
|
2024-03-02 21:19:12 +01:00
|
|
|
|
|
|
|
}
|