dotfiles/nixos/server-common.nix

19 lines
444 B
Nix
Raw Normal View History

2023-01-01 12:25:16 +00:00
{ config, pkgs, ... }: {
imports = [ ./server-security.nix ./tailscale ];
2023-04-22 22:37:02 +01:00
networking.nameservers = [
"100.100.100.100"
"9.9.9.9"
"2620:fe::fe"
"149.112.112.112"
"2620:fe::9"
];
2023-01-01 12:25:16 +00:00
services.nscd = {
enable = true;
enableNsncd = true;
};
system.stateVersion = "23.05";
2023-07-05 16:07:48 +01:00
system.activationScripts.diff = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
}