nix-flake/modules/system/server.nix
2026-03-03 14:46:11 +07:00

32 lines
688 B
Nix

{ config, lib, ... }: {
imports = lib.mkIf (config.specialisation != {}) [
./homelab/containers.nix
./homelab/gallery.nix
./homelab/remote.nix
# ./homelab/media.nix # wip
./homelab/share.nix
./homelab/proxy.nix
./homelab/auth.nix
./homelab/dash.nix
./homelab/dns.nix
./homelab/git.nix
./homelab/ai.nix
./base.nix
];
specialisation.safe-mode.configuration = {};
virtualisation = {
oci-containers.backend = "docker";
docker = {
enable = true;
autoPrune.enable = true;
enableOnBoot = true;
};
};
networking = {
networkmanager.dns = "none";
nameservers = lib.mkForce [ "127.0.0.1" ];
};
}