quasar/configuration.nix

36 lines
969 B
Nix
Raw Normal View History

# vim: tabstop=2 shiftwidth=2 expandtab
let
base-domain = "005540.xyz";
in
2024-08-23 09:02:54 +00:00
{ pkgs, docspell, ... }: {
2024-08-22 09:37:38 +00:00
imports = [
./hardware-configuration.nix
./firewall.nix
./borgbackup.nix
2024-08-23 08:28:25 +00:00
(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-23 09:02:54 +00:00
(import ./docspell.nix { inherit base-domain docspell; })
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";
networking.domain = "";
services.openssh.enable = true;
2024-08-23 08:34:16 +00:00
users.users.root.openssh.authorizedKeys.keys = [
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKQNIDqvhcfLKIDJybVI0o32CSDZpBXxjRxXj6OVQ93E khais@nixos''
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK9C7ssXUVVMKOxfJOumkP3dUWVtC3cBPlCIl6ZZc8ug khais@void''
];
2024-08-22 09:37:38 +00:00
system.stateVersion = "23.11";
}