mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
vixen: add 1password gui
This commit is contained in:
parent
a8ed8259bf
commit
b8243a5f47
2 changed files with 20 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
19
modules/nixos/linux/gui/_1password.nix
Normal file
19
modules/nixos/linux/gui/_1password.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue