2024-11-19 10:31:29 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-03-21 15:00:36 +01:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./fileserver.nix
|
|
|
|
./backup.nix
|
|
|
|
./network.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
sops.secrets.pccs.sopsFile = ../../../.secrets/sgx/pccs.yaml;
|
|
|
|
sops.secrets.backup-pw.sopsFile = ../../../.secrets/sgx/backup-s3.yaml;
|
|
|
|
|
|
|
|
metacfg = {
|
|
|
|
base.enable = true;
|
|
|
|
gui.enable = false;
|
2024-04-10 21:46:05 +02:00
|
|
|
nix-ld.enable = false;
|
2024-03-21 15:00:36 +01:00
|
|
|
nix.enable = true;
|
|
|
|
podman.enable = true;
|
|
|
|
secureboot.enable = true;
|
2024-04-10 21:46:05 +02:00
|
|
|
user.extraGroups = [ "docker" ];
|
2024-11-28 10:01:46 +01:00
|
|
|
tools = {
|
|
|
|
direnv.enable = true;
|
|
|
|
};
|
2024-03-21 15:00:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
virtualisation = {
|
2024-04-10 22:13:19 +02:00
|
|
|
docker.enable = false;
|
2024-03-21 15:00:36 +01:00
|
|
|
libvirtd.enable = true;
|
2024-04-10 22:13:19 +02:00
|
|
|
podman.dockerCompat = true;
|
2024-03-21 15:00:36 +01:00
|
|
|
};
|
2024-04-10 21:46:05 +02:00
|
|
|
|
2024-03-21 15:00:36 +01:00
|
|
|
systemd.services.libvirt-guests.after = [ "network-online.target" ];
|
|
|
|
|
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
operation = "switch";
|
|
|
|
allowReboot = true;
|
|
|
|
};
|
|
|
|
|
2024-04-10 21:46:05 +02:00
|
|
|
systemd.targets.sleep.enable = false;
|
|
|
|
systemd.targets.suspend.enable = false;
|
|
|
|
systemd.targets.hibernate.enable = false;
|
|
|
|
systemd.targets.hybrid-sleep.enable = false;
|
|
|
|
services.xserver.displayManager.gdm.autoSuspend = false;
|
2024-03-21 15:00:36 +01:00
|
|
|
|
2024-04-12 08:38:02 +02:00
|
|
|
services.logind.lidSwitch = "ignore";
|
|
|
|
|
2024-03-21 15:00:36 +01:00
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|