added openvpn to galadriel

This commit is contained in:
Adrian Gunnar Lauterer 2023-12-28 21:54:09 +01:00
parent 42e9aa9d15
commit 3f016eb78c
3 changed files with 45 additions and 2 deletions

View File

@ -8,6 +8,10 @@
imports = imports =
[ # Include the results of the hardware scan. [ # 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. networking.hostName = "galadriel"; # Define your hostname.
@ -113,7 +117,7 @@
#indexing #indexing
services.prowlarr.enable = true; services.prowlarr.enable = true;
services.jackett.enable = true; #services.jackett.enable = true;
#torrent managment #torrent managment
services.transmission.enable = true; services.transmission.enable = true;

View File

@ -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}";
};
}

29
services/torrent.nix Normal file
View File

@ -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)
# };
};
}