Skip to content

Commit 4e3f0b9

Browse files
committed
darwin: fix logrotation owner/group for hm agents
The agents run as user so we need the logs to be user owned.
1 parent ac71b94 commit 4e3f0b9

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

modules/darwin/programs/graphical/bars/sketchybar/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ in
3131
{
3232
logfilename = cfg.logPaths.stdout;
3333
mode = "644";
34+
owner = config.khanelinix.user.name;
35+
group = "staff";
3436
count = 7;
3537
size = "1M";
3638
flags = [
@@ -41,6 +43,8 @@ in
4143
{
4244
logfilename = cfg.logPaths.stderr;
4345
mode = "644";
46+
owner = config.khanelinix.user.name;
47+
group = "staff";
4448
count = 7;
4549
size = "1M";
4650
flags = [

modules/darwin/programs/terminal/tools/atuin/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ in
3131
{
3232
logfilename = cfg.logPaths.stdout;
3333
mode = "644";
34+
owner = config.khanelinix.user.name;
35+
group = "staff";
3436
count = 7;
3537
size = "1M";
3638
flags = [
@@ -41,6 +43,8 @@ in
4143
{
4244
logfilename = cfg.logPaths.stderr;
4345
mode = "644";
46+
owner = config.khanelinix.user.name;
47+
group = "staff";
4448
count = 7;
4549
size = "1M";
4650
flags = [

modules/darwin/services/jankyborders/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ in
2323
{
2424
logfilename = cfg.logPath;
2525
mode = "644";
26+
owner = config.khanelinix.user.name;
27+
group = "staff";
2628
count = 7;
2729
size = "1M";
2830
flags = [

modules/darwin/services/skhd/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ in
3131
{
3232
logfilename = cfg.logPaths.stdout;
3333
mode = "644";
34+
owner = config.khanelinix.user.name;
35+
group = "staff";
3436
count = 7;
3537
size = "1M";
3638
flags = [
@@ -41,6 +43,8 @@ in
4143
{
4244
logfilename = cfg.logPaths.stderr;
4345
mode = "644";
46+
owner = config.khanelinix.user.name;
47+
group = "staff";
4448
count = 7;
4549
size = "1M";
4650
flags = [

0 commit comments

Comments
 (0)