nix-dotfiles/hosts/juri/host.nix

93 lines
2 KiB
Nix
Raw Normal View History

{ config, ... }:
2025-03-18 14:09:25 -07:00
let
email = "admin@woach.me";
in {
imports = [
2025-08-04 18:19:58 -07:00
./hardware.nix ];
system.stateVersion = "24.11";
system.timezone = "America/Los_Angeles";
system.users.bigWheels = [ "pan" ];
2025-03-17 16:18:17 -07:00
sops-nix = {
enable = true;
keyFile = "/etc/sops/age/keys.txt";
sopsFile = ./secrets.yaml;
secrets = {
pdsEnv = {};
forgejoPassword = {
owner = "forgejo";
};
2025-03-17 16:18:17 -07:00
};
};
2025-03-18 14:09:25 -07:00
caddy = {
enable = true;
adminEmail = email;
vhosts = {
"juri.woach.me" = {
extraConfig = ''
reverse_proxy :3000
'';
serverAliases = [ "*.juri.woach.me" ];
};
"winry.woach.me" = {
extraConfig = ''
reverse_proxy :${builtins.toString config.forgejo.server.port}
'';
};
2025-07-09 19:32:34 -07:00
"ginko.woach.me" = {
extraConfig = ''
reverse_proxy :${builtins.toString config.headscale.server.port}
'';
};
2025-03-18 14:09:25 -07:00
};
};
2025-03-17 16:18:17 -07:00
pds = {
enable = true;
hostname = "juri.woach.me";
2025-03-18 14:09:25 -07:00
adminEmail = email;
2025-03-17 16:18:17 -07:00
environmentFile = config.sops.secrets.pdsEnv.path;
};
forgejo = {
enable = true;
server.domain = "winry.woach.me";
users.admin = {
enable = true;
username = "Julia";
passwordFile = config.sops.secrets.forgejoPassword.path;
};
};
2025-07-09 19:32:34 -07:00
headscale = {
enable = true;
server.domain = "ginko.woach.me";
};
2025-08-04 18:19:58 -07:00
syncthing = {
enable = true;
devices = {
"homura".id = "NEP24DB-DVXAHTZ-TCCNREQ-Q5TSC7K-ZXPWC4L-5ELGKQX-4I2P47O-2FT5QAU";
"onizuka".id = "5S6QMND-MHD2HYR-DR6KQD4-6AWJTRL-FQUCR7W-FD2KBT3-AF6RE6R-F47KBQC";
2025-08-11 09:15:01 -07:00
"kobayashi".id = "4JPJHO4-RZHZZYE-ZUDFCZ4-KLBTMLJ-CNZBWWB-NTESYNA-X3EDAZ6-OMKHQAT";
2025-08-04 18:19:58 -07:00
};
folders = {
"wiki" = {
path = "/var/lib/wiki";
2025-08-11 09:15:01 -07:00
devices = [ "homura" "onizuka" "kobayashi" ];
2025-08-04 18:19:58 -07:00
};
};
};
systemd.tmpfiles.rules = [ "d /var/lib/wiki 0755 syncthing syncthing -" ];
2025-04-09 14:06:04 -07:00
postgres.enable = true;
shell.enabledShells = [ "fish" ];
shell.defaultShell = "fish";
tailscale.enable = true;
sshd.enable = true;
}