2024-08-22 09:50:54 +00:00
|
|
|
# vim: tabstop=2 shiftwidth=2 expandtab
|
2024-08-22 16:53:07 +00:00
|
|
|
let
|
|
|
|
|
base-domain = "005540.xyz";
|
|
|
|
|
in
|
2024-08-30 11:08:38 +02:00
|
|
|
{ lib, ... }: {
|
2024-08-22 09:37:38 +00:00
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
2024-08-30 14:20:29 +02:00
|
|
|
./audit.nix
|
|
|
|
|
|
2024-08-29 15:26:31 +02:00
|
|
|
./openssh.nix
|
2024-08-30 14:01:57 +02:00
|
|
|
./tailscale.nix
|
2024-08-30 14:20:29 +02:00
|
|
|
|
2024-08-22 16:38:49 +00:00
|
|
|
./firewall.nix
|
2024-08-27 15:36:49 +02:00
|
|
|
./fail2ban.nix
|
2024-08-30 14:20:29 +02:00
|
|
|
|
2024-08-24 16:26:18 +00:00
|
|
|
./borgbackup.nix
|
2024-08-23 08:28:25 +00:00
|
|
|
|
2024-08-30 14:32:49 +02:00
|
|
|
# disabled since scanner only supports non-encrypted stuff
|
|
|
|
|
#./ftp.nix
|
|
|
|
|
#./samba.nix
|
2024-08-27 12:15:04 +02:00
|
|
|
|
2024-08-22 16:53:07 +00:00
|
|
|
(import ./acme.nix { inherit base-domain; })
|
2024-08-22 16:55:59 +00:00
|
|
|
(import ./nginx.nix { inherit base-domain; })
|
2024-08-22 16:57:30 +00:00
|
|
|
./postgresql.nix
|
2024-08-23 08:28:25 +00:00
|
|
|
|
|
|
|
|
(import ./sourcehut.nix { inherit base-domain; })
|
2024-08-25 19:12:37 +02:00
|
|
|
|
2024-08-30 11:08:38 +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
|
|
|
];
|
|
|
|
|
|
2024-08-23 08:49:55 +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";
|
|
|
|
|
networking.domain = "";
|
2024-08-30 14:16:59 +02:00
|
|
|
nix.allowedUsers = [ "@wheel" "root" ];
|
2024-08-22 09:37:38 +00:00
|
|
|
system.stateVersion = "23.11";
|
|
|
|
|
}
|