nix-config/nixos/modules/profiles/server.nix
Tim Schubert fc616b7be6
Some checks failed
Continuous Integration / Checks (push) Has been cancelled
fix: use tar.gz archive instead of git URL
2024-08-16 15:33:58 +02:00

37 lines
841 B
Nix

{ config
, pkgs
, lib
, ...
}:
with lib; {
imports = [
./backup.nix
./base.nix
];
networking.domain = mkDefault "dadada.li";
networking.tempAddresses = "disabled";
dadada.admin.enable = true;
documentation.enable = mkDefault false;
documentation.nixos.enable = mkDefault false;
services.btrfs.autoScrub.enable = mkDefault ((filterAttrs (name: fs: fs.fsType == "btrfs") config.fileSystems) != { });
services.journald.extraConfig = ''
SystemKeepFree = 2G
'';
system.autoUpgrade = {
enable = true;
flake = "https://git.dadada.li/dadada/nix-config/archive/main.tar.gz#${config.networking.hostName}";
allowReboot = mkDefault false;
randomizedDelaySec = "45min";
};
security.acme = {
defaults.email = "d553a78d-0349-48db-9c20-5b27af3a1dfc@dadada.li";
acceptTerms = true;
};
}