From 1fdbed48dea8725653a5a11a3029bee2fdeb04bc Mon Sep 17 00:00:00 2001 From: teutat3s <teutates@mailbox.org> Date: Thu, 20 Jun 2024 18:26:22 +0200 Subject: [PATCH] uhk: init --- hosts/dumpyourvms/dumpyourvms.nix | 2 ++ hosts/ryzensun/ryzensun.nix | 2 ++ modules/nix/default.nix | 2 ++ users/teutat3s/home.nix | 1 + 4 files changed, 7 insertions(+) diff --git a/hosts/dumpyourvms/dumpyourvms.nix b/hosts/dumpyourvms/dumpyourvms.nix index 7d882c2d..3a275947 100644 --- a/hosts/dumpyourvms/dumpyourvms.nix +++ b/hosts/dumpyourvms/dumpyourvms.nix @@ -96,6 +96,8 @@ in { # Enable udev rules for gnupg smart cards hardware.gpgSmartcards.enable = true; + hardware.keyboard.uhk.enable = true; + powerManagement = { # Use new schedutil govenor # https://github.com/NixOS/nixpkgs/pull/42330 diff --git a/hosts/ryzensun/ryzensun.nix b/hosts/ryzensun/ryzensun.nix index d26444f3..12ffd387 100644 --- a/hosts/ryzensun/ryzensun.nix +++ b/hosts/ryzensun/ryzensun.nix @@ -64,6 +64,8 @@ in { networking.hostName = "ryzensun"; + hardware.keyboard.uhk.enable = true; + home-manager.users."${psCfg.user.name}".xdg.configFile = { "sway/config.d/10-custom-keybindings.conf".source = ./.config/sway/config.d/custom-keybindings.conf; "sway/config.d/autostart.conf".source = ./.config/sway/config.d/autostart.conf; diff --git a/modules/nix/default.nix b/modules/nix/default.nix index efa8f7a8..c8023e8f 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -12,6 +12,8 @@ "brscan5-etc-files" "facetimehd-firmware" "slack" + "uhk-agent" + "uhk-udev-rules" "veracrypt" "zoom" ]; diff --git a/users/teutat3s/home.nix b/users/teutat3s/home.nix index 716771cf..8e30312c 100644 --- a/users/teutat3s/home.nix +++ b/users/teutat3s/home.nix @@ -77,6 +77,7 @@ in { obs-studio scan2paperless wlvncc + uhk-agent ]; programs.bash.initExtra = '' source ${config.age.secrets.environment-secrets.path}