nixcfg/systems/x86_64-linux/sgx/default.nix
Harald Hoyer e9034a7711 sgx: Disable Docker and enable Podman Docker compatibility
Docker has been disabled, with the Podman Docker compatibility feature being enabled instead to ensure system virtualization.
2024-04-10 22:13:19 +02:00

45 lines
1 KiB
Nix

{ pkgs, lib, config, ... }:
{
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;
nix-ld.enable = false;
nix.enable = true;
podman.enable = true;
secureboot.enable = true;
user.extraGroups = [ "docker" ];
};
virtualisation = {
docker.enable = false;
libvirtd.enable = true;
podman.dockerCompat = true;
};
systemd.services.libvirt-guests.after = [ "network-online.target" ];
system.autoUpgrade = {
enable = true;
operation = "switch";
allowReboot = true;
};
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;
system.stateVersion = "23.11";
}