45 lines
1,023 B
Nix
45 lines
1,023 B
Nix
# vim: tabstop=2 shiftwidth=2 expandtab
|
|
let
|
|
base-domain = "005540.xyz";
|
|
in
|
|
{ lib, ... }: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./networking.nix
|
|
./audit.nix
|
|
|
|
./openssh.nix
|
|
./tailscale.nix
|
|
|
|
./firewall.nix
|
|
./fail2ban.nix
|
|
|
|
./borgbackup.nix
|
|
|
|
# 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
|
|
|
|
(import ./sourcehut.nix { inherit base-domain; })
|
|
(import ./paperless.nix { inherit base-domain lib; })
|
|
(import ./mailserver.nix { inherit base-domain; })
|
|
(import ./syncthing.nix { inherit base-domain; })
|
|
|
|
./userprogs.nix
|
|
];
|
|
|
|
environment.sessionVariables = {
|
|
TERM = "xterm-256color";
|
|
};
|
|
|
|
boot.tmp.cleanOnBoot = true;
|
|
zramSwap.enable = true;
|
|
users.users.root.initialPassword = "asunarovow";
|
|
nix.allowedUsers = [ "@wheel" "root" ];
|
|
console.keyMap = "us";
|
|
system.stateVersion = "23.11";
|
|
}
|