nixcfg/systems/x86_64-linux/sgx/default.nix
Harald Hoyer 4386027761 refactor(nixos): standardize configuration structures
- Renamed and reorganized configuration keys for consistency (`settings` usage).
- Updated Postfix, systemd, and Syncthing configurations to adhere to the standardized format.
- Improved maintainability and readability of NixOS configurations.
2025-12-03 10:02:15 +01:00

70 lines
1.5 KiB
Nix

{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./fileserver.nix
./backup.nix
./network.nix
./openwebui.nix
./acme.nix
./nginx.nix
./mail.nix
./wyoming.nix
];
services.tailscale.enable = true;
boot.tmp.useTmpfs = false;
sops.secrets.pccs.sopsFile = ../../../.secrets/sgx/pccs.yaml;
sops.secrets.backup-pw.sopsFile = ../../../.secrets/sgx/backup-s3.yaml;
environment.systemPackages = with pkgs; [
claude-code
];
metacfg = {
emailOnFailure.enable = true;
base.enable = true;
gui.enable = true;
nix-ld.enable = true;
nix.enable = true;
podman.enable = true;
secureboot.enable = true;
user.extraGroups = [
"docker"
"libvirtd"
];
tools = {
direnv.enable = true;
};
};
virtualisation = {
docker.enable = false;
libvirtd.enable = true;
podman.dockerCompat = true;
};
#systemd.services.libvirt-guests.after = [ "network-online.target" ];
services.cratedocs-mcp = {
enable = true;
openFirewall = true;
};
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;
services.logind.settings.Login.HandleLidSwitch = "ignore";
system.stateVersion = "23.11";
}