readd razer support and add compatability shim for broken stylix version
This commit is contained in:
parent
593173ed15
commit
52432082dc
3 changed files with 18 additions and 0 deletions
|
|
@ -67,6 +67,7 @@
|
||||||
|
|
||||||
sharedModules = [
|
sharedModules = [
|
||||||
./nixos/modules/base.nix
|
./nixos/modules/base.nix
|
||||||
|
./nixos/modules/compat/stylix-display-manager-generic.nix
|
||||||
inputs.stylix.nixosModules.stylix
|
inputs.stylix.nixosModules.stylix
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
({ ... }: {
|
({ ... }: {
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,11 @@
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
};
|
};
|
||||||
|
openrazer.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.alisceon.extraGroups = [ "openrazer" ];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
xserver.videoDrivers = [ "nvidia" ];
|
xserver.videoDrivers = [ "nvidia" ];
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
|
|
@ -63,6 +66,7 @@
|
||||||
pkgs.efibootmgr
|
pkgs.efibootmgr
|
||||||
pkgs.prismlauncher
|
pkgs.prismlauncher
|
||||||
pkgs.nvtopPackages.nvidia
|
pkgs.nvtopPackages.nvidia
|
||||||
|
pkgs.openrazer-daemon
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
13
nixos/modules/compat/stylix-display-manager-generic.nix
Normal file
13
nixos/modules/compat/stylix-display-manager-generic.nix
Normal 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.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue