Files
nixos-setup/modules/nixos/desktop/crypto.nix
T
2024-10-03 16:32:41 -04:00

30 lines
608 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.skyg.nixos.desktop.crypto;
in
{
options = {
skyg.nixos.desktop.crypto = {
enable = mkEnableOption
"Enable crypto wallets";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
trezor-suite
trezord
ledger-live-desktop
];
# udev rules for crypto wallets
services.udev.packages = with pkgs; [
ledger-udev-rules
trezor-udev-rules
];
# trezor groups
users.groups.trezord = { };
users.groups.trezord.members = [ config.skyg.user.name ];
};
}