Compare commits
1 Commits
main
...
feature/ps
Author | SHA1 | Date | |
---|---|---|---|
1412e1cc79 |
24
modules/yubikey.nix
Normal file
24
modules/yubikey.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.services.rad-dev.yubikey;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
services.rad-dev.yubikey = {
|
||||
enable = lib.mkEnableOption "enable yubikey defaults";
|
||||
enable-desktop-app = lib.mkEnableOption "installs desktop application";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# enable the smart card daemon for certain yubikey operations
|
||||
services.pcscd.enable = true;
|
||||
|
||||
environment.systemPackages = lib.optionals cfg.enable-desktop-app [ pkgs.yubioath-flutter ];
|
||||
};
|
||||
}
|
@ -84,6 +84,10 @@
|
||||
};
|
||||
#systemd.services.spotifyd.serviceConfig = systemd.services.spotifyd.
|
||||
};
|
||||
rad-dev.yubikey = {
|
||||
enable = true;
|
||||
enable-desktop-app = true;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.alice.extraGroups = [ "calibre-web" ];
|
||||
|
@ -93,7 +93,6 @@
|
||||
wget
|
||||
wl-clipboard
|
||||
xboxdrv
|
||||
yubioath-flutter
|
||||
zoom-us
|
||||
zoxide
|
||||
zoom
|
||||
|
Loading…
x
Reference in New Issue
Block a user