quasar/configuration.nix

45 lines
929 B
Nix
Raw Normal View History

# vim: tabstop=2 shiftwidth=2 expandtab
let
base-domain = "005540.xyz";
in
{ lib, ... }: {
2024-08-22 09:37:38 +00:00
imports = [
./hardware-configuration.nix
./audit.nix
./openssh.nix
2024-08-30 14:01:57 +02:00
./tailscale.nix
./firewall.nix
2024-08-27 15:36:49 +02:00
./fail2ban.nix
./borgbackup.nix
2024-08-23 08:28:25 +00:00
# disabled since scanner only supports non-encrypted stuff
#./ftp.nix
#./samba.nix
(import ./acme.nix { inherit base-domain; })
(import ./nginx.nix { inherit base-domain; })
./postgresql.nix
2024-08-23 08:28:25 +00:00
(import ./sourcehut.nix { inherit base-domain; })
2024-08-25 19:12:37 +02:00
(import ./paperless.nix { inherit base-domain lib; })
2024-08-23 08:28:25 +00:00
2024-08-22 16:40:51 +00:00
./userprogs.nix
2024-08-22 09:37:38 +00:00
];
environment.sessionVariables = {
TERM = "xterm-256color";
};
2024-08-22 09:37:38 +00:00
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "quasar";
2024-08-31 12:29:36 +02:00
users.users.root.initialPassword = "asunarovow";
2024-08-22 09:37:38 +00:00
networking.domain = "";
nix.allowedUsers = [ "@wheel" "root" ];
2024-08-22 09:37:38 +00:00
system.stateVersion = "23.11";
}