2023-11-12 00:40:26 +01:00
|
|
|
{
|
2024-04-11 20:15:47 +02:00
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2023-11-12 00:40:26 +01:00
|
|
|
|
2023-11-23 21:55:37 +01:00
|
|
|
imports = [
|
2024-07-30 20:42:59 +02:00
|
|
|
./hardware.nix
|
2023-11-23 21:55:37 +01:00
|
|
|
./jellyfin.nix
|
2023-12-10 21:09:53 +01:00
|
|
|
./wireguard.nix
|
2024-04-11 20:08:05 +02:00
|
|
|
./nextcloud.nix
|
2024-07-06 09:23:24 +02:00
|
|
|
./gotosocial.nix
|
2024-07-15 17:23:09 +02:00
|
|
|
./matrix.nix
|
2024-07-27 10:22:22 +02:00
|
|
|
./forgejo.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; [
|
|
|
|
neovim
|
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
|
2023-12-10 21:09:53 +01:00
|
|
|
sops = {
|
|
|
|
gnupg.sshKeyPaths = [ ];
|
|
|
|
age = {
|
|
|
|
sshKeyPaths = [ ];
|
|
|
|
keyFile = "/var/lib/sops-nix/key.txt";
|
|
|
|
};
|
|
|
|
defaultSopsFile = ./secrets/secrets.yaml;
|
2024-04-11 20:08:05 +02:00
|
|
|
secrets = {
|
|
|
|
wg0_private = { };
|
|
|
|
wg1_private = { };
|
2024-04-11 20:56:29 +02:00
|
|
|
nextcloud_admin_pw = {
|
|
|
|
owner = config.users.users.nextcloud.name;
|
|
|
|
};
|
2024-07-16 08:25:20 +02:00
|
|
|
discord_bridge_token = { };
|
2024-07-26 22:50:31 +02:00
|
|
|
gotosocial_env = {
|
|
|
|
owner = config.users.users.gotosocial.name;
|
|
|
|
};
|
2024-04-11 20:08:05 +02:00
|
|
|
};
|
2023-12-10 21:09:53 +01:00
|
|
|
};
|
|
|
|
|
2024-09-01 09:12:53 +02:00
|
|
|
my.server.mollysocket.enable = true;
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|