add arr/qb/sab groups if they exist

This commit is contained in:
Joseph Hanson 2025-01-31 19:18:39 -06:00
parent 96da9c78ae
commit eb78727d78

View file

@ -1,8 +1,10 @@
{ pkgs, config, ... }:
let
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in
{
pkgs,
config,
...
}: let
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
sops.secrets = {
jahanson-password = {
sopsFile = ./secrets.sops.yaml;
@ -41,6 +43,11 @@ in
"libvirtd"
"wireshark"
"minecraft"
"prowlarr"
"radarr"
"sonarr"
"qbittorrent"
"sabnzbd"
];
openssh.authorizedKeys.keys = [