Move modules to own directory
This commit is contained in:
@@ -5,13 +5,11 @@
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
../common
|
||||
./hardware-configuration.nix
|
||||
./caddy.nix
|
||||
./prometheus.nix
|
||||
./rclone.nix
|
||||
./synapse.nix
|
||||
|
||||
(import ../../modules).bigding
|
||||
|
||||
./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; [
|
||||
helix
|
||||
kitty # For terminfo
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
}: {
|
||||
networking.firewall.allowedTCPPorts = [80 8448 443];
|
||||
|
||||
services.tailscale.permitCertUid = "caddy";
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
10
modules/default.nix
Normal file
10
modules/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
bigding = {
|
||||
imports = [
|
||||
./caddy
|
||||
./dungflix
|
||||
./monitoring
|
||||
./synapse
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -19,6 +19,21 @@ in {
|
||||
dungflix_bucket_account_key.file = ../../secrets/dungflix_bucket_account_key.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 = {
|
||||
description = "Mount the Backblaze B2 media store";
|
||||
wantedBy = ["multi-user.target"];
|
||||
Reference in New Issue
Block a user