From e7ecd0516136c58058b7d8e6ba40f76213e1ff3a Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 12 Sep 2024 10:36:29 -0500 Subject: [PATCH] Add family users to beefcake --- flake.nix | 1 + nixos/beefcake.nix | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e338f55..0f8296f 100644 --- a/flake.nix +++ b/flake.nix @@ -266,6 +266,7 @@ }; } + family-users common podman troubleshooting-tools diff --git a/nixos/beefcake.nix b/nixos/beefcake.nix index 132d6f3..64462fa 100644 --- a/nixos/beefcake.nix +++ b/nixos/beefcake.nix @@ -140,6 +140,18 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00 }; }; + systemd.tmpfiles.settings = { + "10-daniel-nightly-flake-build" = { + "/home/daniel/.home/.cache/nightly-flake-builds" = { + "d" = { + mode = "0750"; + user = "daniel"; + group = "daniel"; + }; + }; + }; + }; + systemd.services."build-lytedev-flake" = { # TODO: might want to add root for the most recent results? script = '' @@ -153,7 +165,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00 path = with pkgs; [openssh git nixos-rebuild]; serviceConfig = { # TODO: mkdir -p...? - WorkingDirectory = "/home/daniel/.home/nightly-flake-builds"; + WorkingDirectory = "/home/daniel/.home/.cache/nightly-flake-builds"; Type = "oneshot"; User = "daniel"; }; @@ -447,6 +459,9 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00 } { # family storage + users.extraGroups = { + "family" = {}; + }; systemd.tmpfiles.settings = { "10-family" = { "/storage/family" = {