feat(copyparty): create copyparty service for elcafe
This commit is contained in:
@@ -12,6 +12,14 @@
|
||||
sops.secrets = {
|
||||
"elcafe/traefik/env".restartUnits = ["traefik.service"];
|
||||
"elcafe/traefik/dynamic".restartUnits = ["traefik.service"];
|
||||
"elcafe/copyparty/passwords/creug" = {
|
||||
restartUnits = ["copyparty.service"];
|
||||
owner = "creug";
|
||||
};
|
||||
"elcafe/copyparty/passwords/phundrak" = {
|
||||
restartUnits = ["copyparty.service"];
|
||||
owner = "phundrak";
|
||||
};
|
||||
};
|
||||
|
||||
mySystem = {
|
||||
@@ -65,6 +73,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
services.copyparty = import ./copyparty.nix {
|
||||
passwordFiles = {
|
||||
creug = config.sops.secrets."elcafe/copyparty/passwords/creug".path;
|
||||
phundrak = config.sops.secrets."elcafe/copyparty/passwords/phundrak".path;
|
||||
};
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It's perfectly fine and recommended to leave
|
||||
|
||||
23
hosts/elcafe/copyparty.nix
Normal file
23
hosts/elcafe/copyparty.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{passwordFiles}: {
|
||||
enable = true;
|
||||
user = "creug";
|
||||
group = "users";
|
||||
accounts = {
|
||||
creug.passwordFile = passwordFiles.creug;
|
||||
phundrak.passwordFile = passwordFiles.phundrak;
|
||||
};
|
||||
volumes = {
|
||||
"/plex" = {
|
||||
path = "/plex";
|
||||
access.rwmd = ["creug" "phundrak"];
|
||||
flags = {
|
||||
e2dsa = true;
|
||||
e2ts = true;
|
||||
xdev = true;
|
||||
xvol = true;
|
||||
dedup = true;
|
||||
nohash = "\\.iso$";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user