34 lines
948 B
Nix
34 lines
948 B
Nix
# vim: tabstop=2 shiftwidth=2 expandtab
|
|
let
|
|
base-domain = "005540.xyz";
|
|
in
|
|
{ pkgs, docspell, ... }: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./firewall.nix
|
|
|
|
(import ./acme.nix { inherit base-domain; })
|
|
(import ./nginx.nix { inherit base-domain; })
|
|
./postgresql.nix
|
|
|
|
(import ./sourcehut.nix { inherit base-domain; })
|
|
(import ./docspell.nix { inherit base-domain docspell; })
|
|
|
|
./userprogs.nix
|
|
];
|
|
|
|
environment.sessionVariables = {
|
|
TERM = "xterm-256color";
|
|
};
|
|
|
|
boot.tmp.cleanOnBoot = true;
|
|
zramSwap.enable = true;
|
|
networking.hostName = "quasar";
|
|
networking.domain = "";
|
|
services.openssh.enable = true;
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKQNIDqvhcfLKIDJybVI0o32CSDZpBXxjRxXj6OVQ93E khais@nixos''
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK9C7ssXUVVMKOxfJOumkP3dUWVtC3cBPlCIl6ZZc8ug khais@void''
|
|
];
|
|
system.stateVersion = "23.11";
|
|
}
|