mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
modules/nix-darwin/secrets-for-users: empty set instead of empty list
This commit is contained in:
parent
24d89184ad
commit
5dc08f9cc7
1 changed files with 2 additions and 2 deletions
|
|
@ -37,11 +37,11 @@ in
|
|||
}
|
||||
];
|
||||
|
||||
system.activationScripts = lib.mkIf (secretsForUsers != [ ]) {
|
||||
system.activationScripts = lib.mkIf (secretsForUsers != { }) {
|
||||
postActivation.text = lib.mkAfter installScript;
|
||||
};
|
||||
|
||||
launchd.daemons.sops-install-secrets-for-users = lib.mkIf (secretsForUsers != [ ]) {
|
||||
launchd.daemons.sops-install-secrets-for-users = lib.mkIf (secretsForUsers != { }) {
|
||||
command = "sh -c ${lib.escapeShellArg installScript}";
|
||||
serviceConfig = {
|
||||
RunAtLoad = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue