diff --git a/machines/galadriel/configuration.nix b/machines/galadriel/configuration.nix index d917c9c..5488c51 100644 --- a/machines/galadriel/configuration.nix +++ b/machines/galadriel/configuration.nix @@ -7,7 +7,11 @@ { imports = [ # Include the results of the hardware scan. - ./vim.nix + ./vim.nix + ./openvpn.nix + ../../profiles/base.nix + ../../profiles/sops.nix + #../../services/torrent.nix ]; networking.hostName = "galadriel"; # Define your hostname. @@ -113,7 +117,7 @@ #indexing services.prowlarr.enable = true; - services.jackett.enable = true; + #services.jackett.enable = true; #torrent managment services.transmission.enable = true; diff --git a/machines/galadriel/openvpn.nix b/machines/galadriel/openvpn.nix new file mode 100644 index 0000000..67424f7 --- /dev/null +++ b/machines/galadriel/openvpn.nix @@ -0,0 +1,10 @@ +{ config, pkgs, lib, ... }: +{ + + sops.secrets."openvpn/galadriel/config" = {}; + services.openvpn.servers.galadriel = { + config = "config ${config.sops.secrets."openvpn/galadriel/config".path}"; + }; + + +} diff --git a/services/torrent.nix b/services/torrent.nix new file mode 100644 index 0000000..47b0316 --- /dev/null +++ b/services/torrent.nix @@ -0,0 +1,29 @@ +{ config, lib, pkgs, options, ... }: +let + port = 8090; + configLocation = "~/.config/qBittorrent/qBittorrent.conf"; +in +{ + + environment.systemPackages = [ + pkgs.qbittorrent-nox + ]; + systemd.services."qbittorrent-nox@" = { + serviceConfig.ExecStart = let + in "qbittorrent-nox -d --webui-port=${port}"; + }; + + +#services.transmission = { +# enable = false; #Enable transmission daemon +# openRPCPort = true; #Open firewall for RPC +# settings = { #Override default settings +# rpc-bind-address = "0.0.0.0"; #Bind to own IP +# rpc-whitelist = "127.0.0.1,192.168.0.0/23,10.0.0.0/23,100.0.0.0/8,100.117.216.131 "; #Whitelist your remote machine (10.0.0.1 in this example) +# }; + +}; + + + +}