move CAC tools to peripherals

This commit is contained in:
Tyler Starr 2024-10-26 19:41:01 -07:00
parent 5e10a2c3c9
commit b2a6bcd8ed
2 changed files with 4 additions and 8 deletions

View File

@ -4,11 +4,14 @@ let cfg = config.modules.desktop.peripherals;
in { in {
options.modules.desktop.peripherals.enable = lib.mkEnableOption "peripherals"; options.modules.desktop.peripherals.enable = lib.mkEnableOption "peripherals";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.usbmuxd.enable = true; # for iOS mounting as storage
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
libimobiledevice # Library to support iPhone, iPod Touch and iPad devices on Linux libimobiledevice # Library to support iPhone, iPod Touch and iPad devices on Linux
ifuse # fuse filesystem implementation to access the contents of iOS devices ifuse # fuse filesystem implementation to access the contents of iOS devices
pySVS # control SVS subwoofers from the command-line pySVS # control SVS subwoofers from the command-line
opensc # Open source smart card tools and middleware
pcsc-tools # Tools are used to test a PC/SC drivers
pkcs11helper # Library that simplifies the interaction with PKCS#11
]; ];
services.usbmuxd.enable = true; # for iOS mounting as storage
}; };
} }

View File

@ -11,13 +11,6 @@ in {
}; };
config = lib.mkIf (cfg1.enable && cfg2.enable) { config = lib.mkIf (cfg1.enable && cfg2.enable) {
# Applications for CAC usage
environment.systemPackages = with pkgs; [
opensc
pcsc-tools
pkcs11helper
];
home-manager.users.${user} = { home-manager.users.${user} = {
programs.firefox = { programs.firefox = {
enable = true; enable = true;