added K40 laser software
This commit is contained in:
parent
e255edd80c
commit
87fa30b294
6 changed files with 20 additions and 3 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
12
modules/default/common/desktop/k40.nix
Normal file
12
modules/default/common/desktop/k40.nix
Normal 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
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,3 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.udev.extraRules = ''
|
|
||||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="5512", MODE:="0666"
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue