nixos-config/machines/chungus/hardware-configuration/default.nix
2024-06-08 23:17:42 +02:00

20 lines
551 B
Nix

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