nixos-config/nixos/machines/chungus/hardware-configuration/default.nix

28 lines
611 B
Nix
Raw Normal View History

2024-03-02 21:19:12 +01:00
{ ... }:
{
imports = [
./disko-config.nix
./hardware-configuration.nix
];
# todo : rename to component.init.ssh
# todo : make tor optional
configuration.init-ssh = {
2024-05-29 10:05:07 +02:00
#enable = "enabled";
2024-03-02 21:19:12 +01:00
kernelModules = [ "e1000e" ];
};
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" ];
# head -c4 /dev/urandom | od -A none -t x4
networking.hostId = "e439b116";
2024-04-10 18:16:51 +02:00
services.zfs = {
autoSnapshot.enable = true;
autoScrub.enable = true;
};
2024-03-02 21:19:12 +01:00
}