feat: add udev, onepassword, bootloader, power features
This commit is contained in:
18
features/onepassword.nix
Normal file
18
features/onepassword.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
nixos =
|
||||
{ config, lib, user, ... }:
|
||||
let
|
||||
cfg = config.features.onepassword;
|
||||
in
|
||||
{
|
||||
options.features.onepassword.enable = lib.mkEnableOption "1password";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs._1password.enable = true;
|
||||
programs._1password-gui = {
|
||||
enable = true;
|
||||
polkitPolicyOwners = [ user ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user