readd razer support and add compatability shim for broken stylix version

This commit is contained in:
alisceon 2026-04-04 18:54:45 +02:00
parent 593173ed15
commit 52432082dc
3 changed files with 18 additions and 0 deletions

View file

@ -67,6 +67,7 @@
sharedModules = [
./nixos/modules/base.nix
./nixos/modules/compat/stylix-display-manager-generic.nix
inputs.stylix.nixosModules.stylix
inputs.home-manager.nixosModules.home-manager
({ ... }: {

View file

@ -45,8 +45,11 @@
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
openrazer.enable = true;
};
users.users.alisceon.extraGroups = [ "openrazer" ];
services = {
xserver.videoDrivers = [ "nvidia" ];
openssh.enable = true;
@ -63,6 +66,7 @@
pkgs.efibootmgr
pkgs.prismlauncher
pkgs.nvtopPackages.nvidia
pkgs.openrazer-daemon
];
};

View file

@ -0,0 +1,13 @@
{ lib, ... }:
{
options.services.displayManager.generic.environment = lib.mkOption {
type = lib.types.attrsOf lib.types.anything;
default = { };
internal = true;
visible = false;
description = ''
Compatibility shim for older Stylix modules that still reference the
removed services.displayManager.generic.environment option.
'';
};
}