nixos-config/machines/chungus/hardware-configuration/default.nix
Ingolf Wagner 26aaec9101
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 12m39s
fixing fail2ban and set up ssh + tor on chungus
2024-08-08 19:25:19 +02:00

22 lines
554 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" ];
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;
};
}