Move modules to own directory

This commit is contained in:
2022-07-26 16:55:45 +01:00
parent 9954c0f177
commit cc11f89374
6 changed files with 30 additions and 19 deletions

View File

@@ -5,13 +5,11 @@
... ...
}: { }: {
imports = [ imports = [
# Include the results of the hardware scan.
../common ../common
./hardware-configuration.nix ./hardware-configuration.nix
./caddy.nix
./prometheus.nix (import ../../modules).bigding
./rclone.nix
./synapse.nix
./tmux.nix ./tmux.nix
]; ];
@@ -35,20 +33,6 @@
}; };
}; };
services.jellyfin.enable = true;
services.transmission = {
enable = true;
settings = {
rpc-host-whitelist-enable = true;
rpc-host-whitelist = "bigding.squirrel-clownfish.ts.net";
};
};
services.tailscale.permitCertUid = "caddy";
users.users."daniel".extraGroups = ["transmission"];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
helix helix
kitty # For terminfo kitty # For terminfo

View File

@@ -5,6 +5,8 @@
}: { }: {
networking.firewall.allowedTCPPorts = [80 8448 443]; networking.firewall.allowedTCPPorts = [80 8448 443];
services.tailscale.permitCertUid = "caddy";
services.caddy = { services.caddy = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {

10
modules/default.nix Normal file
View File

@@ -0,0 +1,10 @@
{
bigding = {
imports = [
./caddy
./dungflix
./monitoring
./synapse
];
};
}

View File

@@ -19,6 +19,21 @@ in {
dungflix_bucket_account_key.file = ../../secrets/dungflix_bucket_account_key.age; dungflix_bucket_account_key.file = ../../secrets/dungflix_bucket_account_key.age;
dungflix_crypt_remote_obscured_pass.file = ../../secrets/dungflix_crypt_remote_obscured_pass.age; dungflix_crypt_remote_obscured_pass.file = ../../secrets/dungflix_crypt_remote_obscured_pass.age;
}; };
services = {
jellyfin.enable = true;
transmission = {
enable = true;
settings = {
rpc-host-whitelist-enable = true;
rpc-host-whitelist = "bigding.squirrel-clownfish.ts.net";
};
};
};
users.users."daniel".extraGroups = ["transmission"];
systemd.services.dungflix-mount = { systemd.services.dungflix-mount = {
description = "Mount the Backblaze B2 media store"; description = "Mount the Backblaze B2 media store";
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];