This commit is contained in:
rasmus-kirk
2025-06-03 09:07:52 +02:00
parent 3688659a49
commit a72ca94008
5 changed files with 7 additions and 6 deletions
+1
View File
@@ -23,6 +23,7 @@ Added:
- Prowlarr
- Readarr
- Lidarr
- UID/GID's are now static, this should make future backups and migrations more predictable.
Migration:
- Due to how UID/GID's are handled in this new version, certain services
+2 -2
View File
@@ -172,13 +172,13 @@ with lib; let
echo "Backing up /etc/passwd and /etc/group..."
mkdir "${nixarr.stateDir}/migration-backup"
mkdir -p "${nixarr.stateDir}/migration-backup"
cp /etc/passwd "${nixarr.stateDir}/migration-backup/passwd.bak"
cp /etc/group "${nixarr.stateDir}/migration-backup/group.bak"
echo "Wiping all nixarr users and groups from /etc/passwd and /etc/group..."
sed -iE '/^(audiobookshelf|autobrr|bazarr|cross-seed|jellyfin|jellyseerr|lidarr|plex|prowlarr|radarr|readarr|recyclarr|sabnzbd|sonarr|streamer|torrenter|transmission|usenet)/d' /etc/passwd
sed -iE '/^(audiobookshelf|autobrr|bazarr|cross-seed|jellyfin|jellyseerr|lidarr|plex|prowlarr|radarr|readarr|recyclarr|sabnzbd|sonarr|streamer|torrenter|transmission|usenet)/d' /etc/passwd
sed -iE '/^(autobrr|cross-seed|jellyseerr|media|prowlarr|recyclarr|sabnzbd|streamer|torrenter|transmission|usenet)/d' /etc/group
echo ""
+1 -1
View File
@@ -142,7 +142,7 @@ in {
groups.${globals.plex.group}.gid = globals.gids.${globals.plex.group};
users.${globals.plex.user} = {
isSystemUser = true;
group = group;
group = globals.plex.group;
uid = globals.uids.${globals.plex.user};
};
};
+2 -2
View File
@@ -138,7 +138,7 @@ in {
fi
chmod 600 ${ini-file-target}
chown usenet:media ${ini-file-target}
chown ${globals.sabnzbd.user}:${globals.sabnzbd.group} ${ini-file-target}
'';
};
@@ -189,7 +189,7 @@ in {
groups.${globals.sabnzbd.group}.gid = globals.gids.${globals.sabnzbd.group};
users.${globals.sabnzbd.user} = {
isSystemUser = true;
group = group;
group = globals.sabnzbd.group;
uid = globals.uids.${globals.sabnzbd.user};
};
};
+1 -1
View File
@@ -25,7 +25,7 @@ in {
bazarr = 232;
lidarr = 306;
prowlarr = 293;
jellyseerr = 250;
jellyseerr = 262;
sonarr = 274;
radarr = 275;
readarr = 250;