From 288724e86c23f5d294e81bba12ff40ba4114cc37 Mon Sep 17 00:00:00 2001 From: blake Date: Sun, 23 Aug 2026 09:01:09 -0500 Subject: [PATCH] move archives user --- modules/fileshares/holocron/default.nix | 14 +++++++------- modules/homelab/default.nix | 19 +++++++++++-------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/modules/fileshares/holocron/default.nix b/modules/fileshares/holocron/default.nix index b2ded02..6896c7a 100644 --- a/modules/fileshares/holocron/default.nix +++ b/modules/fileshares/holocron/default.nix @@ -16,11 +16,11 @@ ./perms ]; - # define the groups used for backups and archives - users.users.archives = { - isSystemUser = true; - group = "archives"; - }; - - users.groups.archives = {gid = 727;}; + # # define the groups used for backups and archives + # users.users.archives = { + # isSystemUser = true; + # group = "archives"; + # }; + # + # users.groups.archives = {gid = 727;}; } diff --git a/modules/homelab/default.nix b/modules/homelab/default.nix index ecf9483..4955c0b 100644 --- a/modules/homelab/default.nix +++ b/modules/homelab/default.nix @@ -2,6 +2,7 @@ pkgs, config, lib, + inputs, ... }: let cfg = config.homelab; @@ -30,14 +31,6 @@ in { }; }; - # define the groups used for backups and archives - users.users.archives = { - isSystemUser = true; - group = "archives"; - }; - - users.groups.archives = {gid = 727;}; - # the order determines the order in glance :3 imports = [ #./ai @@ -47,4 +40,14 @@ in { #./nomad ./network ]; + + config = lib.mkIf cfg.enable { + # define the groups used for backups and archives + users.users.archives = { + isSystemUser = true; + group = "archives"; + }; + + users.groups.archives = {gid = 727;}; + }; }