Skip to content

Commit

Permalink
vixen: add 1password gui
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 22, 2024
1 parent a8ed825 commit b8243a5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions configurations/nixos/vixen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
19 changes: 19 additions & 0 deletions modules/nixos/linux/gui/_1password.nix
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" ];
};
}

0 comments on commit b8243a5

Please sign in to comment.