feat: add udev, onepassword, bootloader, power features

This commit is contained in:
2026-04-12 21:28:14 +00:00
parent b8509196d5
commit 8793f97a04
4 changed files with 167 additions and 0 deletions

18
features/onepassword.nix Normal file
View 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 ];
};
};
};
}