modularize yubikey

This commit is contained in:
Fabian Montero 2024-11-21 01:42:04 -06:00
parent f577fd237d
commit f5cfd50183
4 changed files with 22 additions and 3 deletions

View file

@ -9,5 +9,6 @@
./neovim.nix
./baseline.nix
./steam
./yubikey.nix
];
}

20
home/modules/yubikey.nix Normal file
View file

@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.apps.yubikey;
in {
options.local.apps.yubikey = {
enable = mkEnableOption "Yubikey home settings";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
yubikey-manager
yubico-pam
yubikey-personalization
];
};
}

View file

@ -34,9 +34,6 @@
vlc
vpsfree-client
vscodium-fhs
yubikey-manager
yubico-pam
yubikey-personalization
zola
zoom-us
];

View file

@ -18,6 +18,7 @@
terminal.enable = true;
neovim.enable = true;
steam.enable = true;
yubikey.enable = true;
};
};