From 52432082dc48cad03d192d71c348858d6f46f0c0 Mon Sep 17 00:00:00 2001 From: alisceon Date: Sat, 4 Apr 2026 18:54:45 +0200 Subject: [PATCH] readd razer support and add compatability shim for broken stylix version --- flake.nix | 1 + nixos/hosts/tower/configuration.nix | 4 ++++ .../compat/stylix-display-manager-generic.nix | 13 +++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 nixos/modules/compat/stylix-display-manager-generic.nix diff --git a/flake.nix b/flake.nix index 753ed17..fa17a3c 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ({ ... }: { diff --git a/nixos/hosts/tower/configuration.nix b/nixos/hosts/tower/configuration.nix index 0569e35..a720b56 100644 --- a/nixos/hosts/tower/configuration.nix +++ b/nixos/hosts/tower/configuration.nix @@ -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 ]; }; diff --git a/nixos/modules/compat/stylix-display-manager-generic.nix b/nixos/modules/compat/stylix-display-manager-generic.nix new file mode 100644 index 0000000..09e67cf --- /dev/null +++ b/nixos/modules/compat/stylix-display-manager-generic.nix @@ -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. + ''; + }; +}