added openvpn to galadriel
This commit is contained in:
parent
42e9aa9d15
commit
3f016eb78c
|
@ -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;
|
||||
|
|
|
@ -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}";
|
||||
};
|
||||
|
||||
|
||||
}
|
|
@ -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)
|
||||
# };
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue