voyager: add service podgrab. add user amalieem
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
./services/kanidm.nix
|
||||
./services/nextcloud.nix
|
||||
./services/nginx
|
||||
./services/podgrab.nix
|
||||
./services/postgres.nix
|
||||
./services/timemachine.nix
|
||||
./services/transmission.nix
|
||||
@@ -44,6 +45,14 @@
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.oci-containers.backend = "docker";
|
||||
|
||||
users.users."amalieem" = {
|
||||
isNormalUser = true;
|
||||
home = "/home/amalieem";
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID7e+BAoXIFmTeeBYAVImQAcyx6SCoYCErA7h16OGL70 amalieem@wentworth"
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11";
|
||||
}
|
||||
|
||||
|
||||
22
hosts/voyager/services/podgrab.nix
Normal file
22
hosts/voyager/services/podgrab.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
cfg = config.services.podgrab;
|
||||
domain = "podgrab.home.feal.no";
|
||||
in {
|
||||
sops.secrets."podgrab/password" = { };
|
||||
|
||||
services.podgrab = {
|
||||
enable = true;
|
||||
port = 5104;
|
||||
passwordFile = config.sops.secrets."podgrab/password".path;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${domain} = {
|
||||
locations."/".proxyPass = "http://localhost:${toString cfg.port}";
|
||||
};
|
||||
|
||||
fileSystems."/tank/media/jellyfin/Podcasts" = {
|
||||
device = "/var/lib/podgrab/data";
|
||||
options = [ "bind "];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user