2023-03-03 15:22:57 +03:00
|
|
|
{ pkgs, ... }:
|
2023-03-02 13:09:07 +03:00
|
|
|
|
|
|
|
let
|
2023-03-18 16:47:02 +03:00
|
|
|
data = import ../../../data.nix;
|
2023-03-02 13:09:07 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./networking.secret.nix # generated at runtime by nixos-infect
|
|
|
|
|
2023-03-31 17:40:22 +03:00
|
|
|
../../modules/nix.nix
|
2023-03-18 16:47:02 +03:00
|
|
|
../../shared/common.nix
|
|
|
|
../../shared/fail2ban.nix
|
|
|
|
../../shared/garbage-collector.nix
|
|
|
|
../../shared/docker-swarm.nix
|
2023-03-02 16:00:19 +03:00
|
|
|
|
|
|
|
./services/wireguard.nix
|
2023-03-02 13:09:07 +03:00
|
|
|
];
|
|
|
|
|
2023-03-03 15:22:57 +03:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_1;
|
|
|
|
|
2023-03-02 13:09:07 +03:00
|
|
|
boot.cleanTmpDir = true;
|
|
|
|
zramSwap.enable = true;
|
|
|
|
|
|
|
|
networking.hostName = "canigou";
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = data.publicKeys.users.jan;
|
|
|
|
}
|