Skip to content

Commit

Permalink
allow vaultwarden invites
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Oct 18, 2023
1 parent c3a206a commit 73f1453
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/helpers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@

# check if modernshell and cli are both enabled
isModernShell = conf: conf.modules.programs.cli.enable && conf.modules.programs.cli.modernShell.enable;

# ifOneEnabled takes a parent option and 3 child options and checks if at least one of them is enabled
# `ifOneEnabled config.modules.services "service1" "service2" "service3"`
ifOneEnabled = cfg: a: b: c: (cfg.a || cfg.b || cfg.c);
in {
inherit primaryMonitor filterNixFiles importNixFiles boolToNum fetchKeys containsStrings serializeTheme isAcceptedDevice isWayland isModernShell indexOf;
inherit primaryMonitor filterNixFiles importNixFiles boolToNum fetchKeys containsStrings serializeTheme isAcceptedDevice isWayland isModernShell indexOf ifOneEnabled;
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ in {
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = 8222;
extendedLogging = true;
invitationsAllowed = false;
invitationsAllowed = true;
useSyslog = true;
logLevel = "warn";
showPasswordHint = false;
Expand Down

0 comments on commit 73f1453

Please sign in to comment.