summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--machines/zenbook/default.nix4
-rw-r--r--modules/users/defin.nix2
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";