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
hosts
modules/default/common

View file

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

View file

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

View file

@ -5,6 +5,7 @@
./autostart.nix
./boot.nix
./dev.nix
./k40.nix
./keyboard.nix
./nfs-client.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;
};
laser.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
windowManager = lib.mkOption {
default = "Hyprland";
type = lib.types.str;