2024-10-26 19:05:14 -07:00
|
|
|
{ config, lib, pkgs, user, ... }:
|
|
|
|
|
2024-10-29 19:58:15 -07:00
|
|
|
let cfg = config.modules.desktop;
|
2024-10-26 19:05:14 -07:00
|
|
|
in {
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
libimobiledevice # Library to support iPhone, iPod Touch and iPad devices on Linux
|
|
|
|
ifuse # fuse filesystem implementation to access the contents of iOS devices
|
|
|
|
pySVS # control SVS subwoofers from the command-line
|
2024-11-07 20:58:34 -08:00
|
|
|
(pkgs.writeScriptBin "sv" ''
|
|
|
|
#!/bin/sh
|
2024-11-10 19:32:05 -08:00
|
|
|
pySVS 54:B7:E5:57:1A:7B --volume="$1" && echo "$1" > /tmp/svs
|
|
|
|
'')
|
|
|
|
(pkgs.writeScriptBin "svv" ''
|
|
|
|
#!/bin/sh
|
|
|
|
pySVS 54:B7:E5:57:1A:7B --volume=A | grep -oP "(?<=VOLUME': )-?\\d+" > /tmp/svs
|
2024-11-07 20:58:34 -08:00
|
|
|
'')
|
2024-10-26 19:41:01 -07:00
|
|
|
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
|
2024-10-26 19:05:14 -07:00
|
|
|
];
|
2024-10-26 19:41:01 -07:00
|
|
|
services.usbmuxd.enable = true; # for iOS mounting as storage
|
2024-10-26 19:05:14 -07:00
|
|
|
};
|
|
|
|
}
|