added K40 laser software

This commit is contained in:
willifan 2025-01-04 01:21:15 +01:00
parent e255edd80c
commit 87fa30b294
6 changed files with 20 additions and 3 deletions

View file

@ -13,6 +13,7 @@
desktop = { desktop = {
enable = true; enable = true;
dev.enable = true; dev.enable = true;
laser.enable = true;
windowManager = "niri-session"; windowManager = "niri-session";
hyprland.enable = false; hyprland.enable = false;
}; };

View file

@ -13,6 +13,7 @@
enable = true; enable = true;
autostart.enable = false; autostart.enable = false;
emulation.enable = true; emulation.enable = true;
laser.enable = true;
hyprland = { hyprland = {
hardware.Lillie = true; hardware.Lillie = true;

View file

@ -5,6 +5,7 @@
./autostart.nix ./autostart.nix
./boot.nix ./boot.nix
./dev.nix ./dev.nix
./k40.nix
./keyboard.nix ./keyboard.nix
./nfs-client.nix ./nfs-client.nix
./nix-ld.nix ./nix-ld.nix

View file

@ -0,0 +1,12 @@
{ lib, config, pkgs, ... }:
lib.mkIf config.desktop.laser.enable {
services.udev.extraRules = ''
SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="5512", MODE:="0666"
'';
environment.systemPackages = with pkgs; [
k40-whisperer
];
}

View file

@ -1,6 +1,3 @@
{ ... }: { ... }:
{ {
services.udev.extraRules = ''
SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="5512", MODE:="0666"
'';
} }

View file

@ -18,6 +18,11 @@
type = lib.types.bool; type = lib.types.bool;
}; };
laser.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
windowManager = lib.mkOption { windowManager = lib.mkOption {
default = "Hyprland"; default = "Hyprland";
type = lib.types.str; type = lib.types.str;