2022-12-31 07:24:17 +01:00
|
|
|
{ lib, config, ... }:
|
2019-08-11 19:53:02 +01:00
|
|
|
|
|
|
|
{
|
2021-01-21 16:28:48 +01:00
|
|
|
imports = [
|
2022-12-03 12:45:45 +10:00
|
|
|
./auto-upgrade.nix
|
2021-03-07 16:28:44 +00:00
|
|
|
./nix-daemon.nix
|
2021-01-21 16:28:48 +01:00
|
|
|
./security.nix
|
2022-12-03 12:45:45 +10:00
|
|
|
./sops-nix.nix
|
2021-03-04 06:24:57 +01:00
|
|
|
./users.nix
|
2019-08-12 11:33:34 +02:00
|
|
|
];
|
|
|
|
|
2019-08-11 19:53:02 +01:00
|
|
|
# Nicer interactive shell
|
|
|
|
programs.fish.enable = true;
|
|
|
|
# And for the zsh peeps
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
2022-01-09 15:57:46 +01:00
|
|
|
security.acme.defaults.email = "trash@nix-community.org";
|
2021-03-04 10:55:37 +01:00
|
|
|
security.acme.acceptTerms = true;
|
|
|
|
|
2021-02-17 23:31:22 +01:00
|
|
|
# Without configuration this unit will fail...
|
|
|
|
# Just disable it since we are using telegraf to monitor raid health.
|
|
|
|
systemd.services.mdmonitor.enable = false;
|
|
|
|
|
2022-01-09 15:56:36 +01:00
|
|
|
# speed-up evaluation & save disk space by disabling manpages
|
|
|
|
documentation.enable = false;
|
2022-08-13 11:13:06 +02:00
|
|
|
|
|
|
|
networking.domain = "nix-community.org";
|
|
|
|
|
|
|
|
# HACK: NixOS does not let us using a hostname that has the domain part included include domain part in hostname
|
|
|
|
boot.kernel.sysctl."kernel.hostname" = config.networking.fqdn;
|
|
|
|
|
|
|
|
# don't override host set by sysctl
|
|
|
|
system.activationScripts.hostname = lib.mkForce "";
|
|
|
|
system.activationScripts.domain = lib.mkForce "";
|
2019-08-11 19:53:02 +01:00
|
|
|
}
|