nixos-config/configurations/camelot/default.nix

71 lines
1.3 KiB
Nix
Raw Normal View History

2023-11-12 00:40:26 +01:00
{
2024-04-11 20:15:47 +02:00
pkgs,
config,
...
}:
{
2023-11-12 00:40:26 +01:00
2023-11-23 21:55:37 +01:00
imports = [
./hardware.nix
2023-11-23 21:55:37 +01:00
./jellyfin.nix
./wireguard.nix
2024-04-11 20:08:05 +02:00
./nextcloud.nix
2024-07-06 09:23:24 +02:00
./gotosocial.nix
2024-07-27 10:22:22 +02:00
./forgejo.nix
2025-01-12 13:30:09 +01:00
./zfs.nix
2023-11-23 21:55:37 +01:00
];
2024-07-06 09:23:24 +02:00
services.nginx = {
enable = true;
clientMaxBodySize = "40m";
virtualHosts."dalaran.fr" = {
default = true;
enableACME = true;
forceSSL = true;
};
};
2023-11-14 22:08:37 +01:00
2023-11-12 00:40:26 +01:00
environment.systemPackages = with pkgs; [
2024-12-02 22:39:21 +01:00
helix
2023-11-22 21:51:17 +01:00
git
2023-11-12 00:40:26 +01:00
];
2024-04-11 20:15:47 +02:00
# System secrets
2024-12-10 13:37:56 +01:00
age.secrets = {
wg0Private.file = ../../secrets/camelot-wg0.age;
wg1Private.file = ../../secrets/camelot-wg1.age;
nextcloudAdminPassword = {
file = ../../secrets/nextcloud-admin.age;
owner = config.users.users.nextcloud.name;
group = config.users.users.nextcloud.group;
};
2024-12-10 13:37:56 +01:00
gtsEnv = {
file = ../../secrets/gts-env.age;
owner = config.users.users.gotosocial.name;
group = config.users.users.gotosocial.group;
2024-04-11 20:08:05 +02:00
};
2024-12-10 20:04:20 +01:00
keycloakDbPassword.file = ../../secrets/keycloak-db.age;
2025-01-12 13:30:09 +01:00
zfsMail.file = ../../secrets/zfs-mail.age;
};
2024-09-28 22:11:30 +02:00
my.server.blog.enable = true;
2024-10-26 15:15:06 +02:00
my.server.papermc.enable = true;
2024-12-10 20:04:20 +01:00
my.server.sso = {
enable = true;
dbPasswordFile = config.age.secrets.keycloakDbPassword.path;
};
2024-09-01 09:12:53 +02:00
2024-08-01 21:40:51 +02:00
my.users = {
2023-11-12 00:40:26 +01:00
dala = {
description = "Dala";
groups = [ "wheel" ];
uid = 1000;
shell = pkgs.bash;
};
};
}