aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-12-26 10:43:13 +0100
committerMartin Fischer <martin@push-f.com>2025-12-26 10:43:13 +0100
commitf679aa20a4e8148879deec44195ff3a16e466b5d (patch)
tree4512f65db81eac7e26b34b524a8dec32ad93636e /nixos
parent46b96c364c90e6d256365feda10cb96122044d22 (diff)
refactor(ev): set music and photos permissions
Diffstat (limited to 'nixos')
-rw-r--r--nixos/hosts/ev/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/hosts/ev/default.nix b/nixos/hosts/ev/default.nix
index 5971755..c5abe4d 100644
--- a/nixos/hosts/ev/default.nix
+++ b/nixos/hosts/ev/default.nix
@@ -72,10 +72,14 @@ in
users.groups = {
kodi = {};
library = {};
+ music = {};
+ photos = {};
};
systemd.tmpfiles.rules = [
"d /mnt/lib 2770 library library -"
+ "d /mnt/personal/music 2770 root music -"
+ "d /mnt/personal/photos 2770 root photos -"
];
users.users = {
@@ -87,6 +91,8 @@ in
# directory-specific
"library"
+ "music"
+ "photos"
];
};
@@ -105,6 +111,11 @@ in
home = "/home/library";
createHome = true;
};
+
+ navidrome = {
+ isSystemUser = true;
+ extraGroups = ["music"];
+ };
};
# Services