dotfiles/provision/modules/desktop/peripherals.nix

25 lines
940 B
Nix
Raw Normal View History

2024-10-26 19:05:14 -07:00
{ config, lib, pkgs, user, ... }:
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
2024-12-05 12:41:02 -08:00
ifuse # Fuse filesystem implementation to access the contents of iOS devices
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
pySVS # Control SVS subwoofers from the command-line
(pkgs.writeScriptBin "sv" ''
#!/bin/sh
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-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
};
}