-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# https://nixos.wiki/wiki/1Password | ||
{ lib, ... }: | ||
{ | ||
# Enable the unfree 1Password packages | ||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ | ||
"1password-gui" | ||
"1password" | ||
]; | ||
# Alternatively, you could also just allow all unfree packages | ||
# nixpkgs.config.allowUnfree = true; | ||
|
||
programs._1password.enable = true; | ||
programs._1password-gui = { | ||
enable = true; | ||
# Certain features, including CLI integration and system authentication support, | ||
# require enabling PolKit integration on some desktop environments (e.g. Plasma). | ||
polkitPolicyOwners = [ "srid" ]; | ||
}; | ||
} |