diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2025-08-08 16:07:06 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2025-08-08 16:07:06 -0600 |
| commit | 86528fd920f6f22fc524e49ab7bb317c64a53a81 (patch) | |
| tree | b929cb5ec4ec17d7df35d9d23449fc194c450f25 | |
| parent | 32614f2c6ce4ca9b213318decac73cf9237c300a (diff) | |
messing with onlykey hardware supportonlykey
| -rw-r--r-- | machines/zenbook/default.nix | 4 | ||||
| -rw-r--r-- | modules/users/defin.nix | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/machines/zenbook/default.nix b/machines/zenbook/default.nix index 61e20db..a9dd72e 100644 --- a/machines/zenbook/default.nix +++ b/machines/zenbook/default.nix @@ -35,6 +35,10 @@ binfmt.emulatedSystems = ["aarch64-linux"]; }; hardware.onlykey.enable = true; + services.udev.extraRules = '' + # SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", OWNER:="defin", GROUP:="onlykey", RUN+="${pkgs.onlykey-cli}/bin/onlykey-cli settime" + # KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", OWNER:="defin", GROUP:="onlykey", RUN+="${pkgs.onlykey-cli}/bin/onlykey-cli settime" + ''; # i2c for https://github.com/mohamed-badaoui/asus-touchpad-numpad-driver hardware.i2c.enable = true; diff --git a/modules/users/defin.nix b/modules/users/defin.nix index 811c851..afc3db3 100644 --- a/modules/users/defin.nix +++ b/modules/users/defin.nix @@ -7,7 +7,7 @@ users.defin = { isNormalUser = true; description = "Devin Finlinson"; - extraGroups = [ "wheel" "builders" "video" "input" "docker" "dialout" "wireshark" "networkmanager" "libvirtd" "adbusers" ]; # (wheel) Enable ‘sudo’ for the user. + extraGroups = [ "wheel" "builders" "video" "input" "docker" "dialout" "wireshark" "onlykey" "networkmanager" "libvirtd" "adbusers" ]; # (wheel) Enable ‘sudo’ for the user. shell = pkgs.nushell; hashedPassword = "$6$UljPNAdxZ22lP3Bc$8VaEAacZxtXM3Zji2IA7Jf5fXs9pFnAVQff1d8IbfFOKCvjibceyopOAjRXa8lXtpOSJgPW1OO1dzOspqhWnz0"; |
