mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-05-11 01:55:57 +08:00
fix scope in sops.templates; add relevant test
This commit is contained in:
parent
77aacab6fa
commit
4de4d820ba
2 changed files with 13 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ with builtins;
|
|||
let
|
||||
cfg = config.sops;
|
||||
secretsForUsers = lib.filterAttrs (_: v: v.neededForUsers) cfg.secrets;
|
||||
users = config.users.users;
|
||||
in {
|
||||
options.sops = {
|
||||
templates = mkOption {
|
||||
|
|
@ -44,7 +45,7 @@ in {
|
|||
};
|
||||
group = mkOption {
|
||||
type = str;
|
||||
default = config.users.users.${config.owner}.group;
|
||||
default = users.${config.owner}.group;
|
||||
description = ''
|
||||
Group of the file.
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue