Skip to content

Commit

Permalink
fix: allow brockman to access brockman group files
Browse files Browse the repository at this point in the history
  • Loading branch information
kmein committed Dec 30, 2024
1 parent 7a91529 commit 395c516
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ in {
};

config = mkIf cfg.enable {
users.users.groups.brockman = {};

systemd.services.brockman = {
description = "RSS to IRC broadcaster";

Expand All @@ -24,7 +26,9 @@ in {
${cfg.package}/bin/brockman ${pkgs.writeText "brockman.json" (builtins.toJSON cfg.config)}
'';

RuntimeDirectory = "brockman";
SupplementaryGroups= "brockman";

RuntimeDirectory = "brockman-temp";
StateDirectory = "brockman";

DynamicUser = true;
Expand Down

0 comments on commit 395c516

Please sign in to comment.