Move modules to own directory
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
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_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"];
|
||||||
Reference in New Issue
Block a user