2024-06-08 23:17:42 +02:00
|
|
|
{ config, factsGenerator, clanLib, ... }:
|
2024-03-02 21:19:12 +01:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./disko-config.nix
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-05-29 20:16:04 +02:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
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
|
|
|
|
|
|
|
}
|