mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-27 15:54:58 +08:00
19 lines
619 B
Nix
19 lines
619 B
Nix
# 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" ];
|
|
};
|
|
}
|