Skip to content

Commit

Permalink
fix: perms
Browse files Browse the repository at this point in the history
  • Loading branch information
truxnell committed Jul 18, 2024
1 parent ffd98a2 commit d33e537
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion archive/nixos/lidarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ in
};

environment.persistence."${config.mySystem.system.impermanence.persistPath}" = lib.mkIf config.mySystem.system.impermanence.enable {
directories = [{ directory = appFolder; inherit user; inherit group; mode = "750"; }];
directories = [{ directory = appFolder; inherit user; inherit user group; mode = "750"; }];
};

mySystem.services.homepage.media = mkIf cfg.addToHomepage [
Expand Down
2 changes: 1 addition & 1 deletion archive/nixos/prowlarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ in
};

environment.persistence."${config.mySystem.system.impermanence.persistPath}" = lib.mkIf config.mySystem.system.impermanence.enable {
directories = [{ directory = appFolder; inherit user; inherit group; mode = "750"; }];
directories = [{ directory = appFolder; inherit user; inherit user group; mode = "750"; }];
};

mySystem.services.homepage.media = mkIf cfg.addToHomepage [
Expand Down
2 changes: 1 addition & 1 deletion archive/nixos/radarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ in
};

environment.persistence."${config.mySystem.system.impermanence.persistPath}" = lib.mkIf config.mySystem.system.impermanence.enable {
directories = [{ directory = appFolder; inherit user; inherit group; mode = "750"; }];
directories = [{ directory = appFolder; inherit user; inherit user group; mode = "750"; }];
};


Expand Down
2 changes: 1 addition & 1 deletion archive/nixos/readarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ in
};

environment.persistence."${config.mySystem.system.impermanence.persistPath}" = lib.mkIf config.mySystem.system.impermanence.enable {
directories = [{ directory = appFolder; inherit user; inherit group; mode = "750"; }];
directories = [{ directory = appFolder; inherit user; inherit user group; mode = "750"; }];
};

mySystem.services.homepage.media = mkIf cfg.addToHomepage [
Expand Down
2 changes: 1 addition & 1 deletion archive/nixos/sabnzbd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ in
];

environment.persistence."${config.mySystem.system.impermanence.persistPath}" = lib.mkIf config.mySystem.system.impermanence.enable {
directories = [{ directory = appFolder; inherit user; inherit group; mode = "750"; }];
directories = [{ directory = appFolder; inherit user; inherit user group; mode = "750"; }];
};

mySystem.services.gatus.monitors = [{
Expand Down
4 changes: 2 additions & 2 deletions archive/nixos/sonarr/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib
k{ lib
, config
, pkgs
, ...
Expand Down Expand Up @@ -68,7 +68,7 @@ in
};

environment.persistence."${config.mySystem.system.impermanence.persistPath}" = lib.mkIf config.mySystem.system.impermanence.enable {
directories = [{ directory = appFolder; inherit user; inherit group; mode = "750"; }];
directories = [{ directory = appFolder; inherit user; inherit user group; mode = "750"; }];
};

mySystem.services.homepage.media = mkIf cfg.addToHomepage [
Expand Down
2 changes: 1 addition & 1 deletion nixos/hosts/daedalus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
plex.enable = true;
maintainerr.enable = true;
immich.enable = true;
filebrowser.enable = true;
# filebrowser.enable = true;
syncthing.enable = true;
navidrome.enable=true;
};
Expand Down
12 changes: 6 additions & 6 deletions nixos/modules/nixos/containers/immich/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ in
"wal_compression=on"
];
volumes = [ "/var/lib/immich/postgres/:/var/lib/postgresql/data" ];
extraOptions = [
''--health-cmd=pg_isready --dbname=''${DB_DATABASE_NAME} --username=''${DB_USERNAME} || exit 1; Chksum="$$(psql --dbname=''${DB_DATABASE_NAME} --username=''${DB_USERNAME} --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1''
"--health-interval=10s"
"--health-timeout=5s"
"--health-start-period=30s"
];
# extraOptions = [
# ''--health-cmd=pg_isready --dbname=''${DB_DATABASE_NAME} --username=''${DB_USERNAME} || exit 1; Chksum="$$(psql --dbname=''${DB_DATABASE_NAME} --username=''${DB_USERNAME} --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1''
# "--health-interval=10s"
# "--health-timeout=5s"
# "--health-start-period=30s"
# ];
};
};

Expand Down
3 changes: 1 addition & 2 deletions nixos/modules/nixos/containers/qbittorrent/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ let
xseedShell = pkgs.writeScriptBin "xseed.sh" # scrit to call cross-seed upon torrent finish
''
#!/bin/bash
# qbit command: /scripts/xseed.sh "%F" "%R"
chmod 755 -R $2
# qbit command: /scripts/xseed.sh "%F"
/usr/bin/curl -X POST --data-urlencode "path=$1" https://cross-seed.trux.dev/api/webhook
'';

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/nixos/services/lidarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ in
services.lidarr = {
enable = true;
dataDir = appFolder;
inherit group;
inherit user group;
};


Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/nixos/services/radarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ in
services.radarr = {
enable = true;
dataDir = "/var/lib/${app}";
inherit group;
inherit user group;
package = pkgs.radarr;
};

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/nixos/services/readarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ in
services.readarr = {
enable = true;
dataDir = appFolder;
inherit group;
inherit user group;
};


Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/nixos/services/sonarr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ in
services.sonarr = {
enable = true;
dataDir = "/var/lib/sonarr";
inherit group;
inherit user group;
};


Expand Down

0 comments on commit d33e537

Please sign in to comment.