system/nixos/hosts/tatos/default.nix

29 lines
601 B
Nix
Raw Normal View History

2023-07-29 17:21:48 +03:00
{ pkgs, ... }:
let
data = import ../../../data.nix;
in
{
imports = [
./hardware-configuration.nix
./networking.secret.nix # generated at runtime by nixos-infect
../../modules/nix.nix
../../shared/common.nix
../../shared/garbage-collector.nix
../../shared/fail2ban
2023-07-29 17:21:48 +03:00
./services/wireguard.nix
];
2024-03-29 15:48:33 +03:00
boot.kernelPackages = pkgs.unstable.linuxPackages_6_6_hardened;
2023-07-29 17:21:48 +03:00
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "tatos";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = data.publicKeys.users.jan;
}