vixen: add 1password gui

This commit is contained in:
Sridhar Ratnakumar 2024-10-22 18:05:06 -04:00
parent a8ed8259bf
commit b8243a5f47
2 changed files with 20 additions and 0 deletions

View file

@ -10,6 +10,7 @@ in
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p14s-amd-gen4
./configuration.nix
(self + /modules/nixos/linux/gui/gnome.nix)
(self + /modules/nixos/linux/gui/_1password.nix)
];
services.openssh.enable = true;

View file

@ -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" ];
};
}