nixos/razer: move module replacement to module-overrides.nix
This commit is contained in:
parent
8ceac3ce88
commit
0d62f52cd5
2 changed files with 12 additions and 12 deletions
|
@ -16,6 +16,18 @@ let
|
||||||
sha256 = "0s2k8k6rrlwn2zb02q6fkvswln8w4hvh02hm4krqvkh46amyasyy";
|
sha256 = "0s2k8k6rrlwn2zb02q6fkvswln8w4hvh02hm4krqvkh46amyasyy";
|
||||||
})];
|
})];
|
||||||
}
|
}
|
||||||
|
# NIXPKGS-PR: 394300
|
||||||
|
{
|
||||||
|
disabledModules = [
|
||||||
|
"${modulesPath}/hardware/openrazer.nix"
|
||||||
|
];
|
||||||
|
replacementModules = [
|
||||||
|
(builtins.fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/4a11562c20fbe7af7d5ac139dbf0f8d50ce276f6/nixos/modules/hardware/openrazer.nix";
|
||||||
|
sha256 = "0n6kzrcwlmxgws4pmffyqagp2rxpfxmfjl11vgvlkjcbglg6fs7y";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
toModule = entry: {
|
toModule = entry: {
|
||||||
|
|
|
@ -1,23 +1,11 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
# NIXPKGS-PR: 394300
|
|
||||||
disabledModules = [
|
|
||||||
"${modulesPath}/hardware/openrazer.nix"
|
|
||||||
];
|
|
||||||
imports = [
|
|
||||||
(builtins.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/4a11562c20fbe7af7d5ac139dbf0f8d50ce276f6/nixos/modules/hardware/openrazer.nix";
|
|
||||||
sha256 = "0n6kzrcwlmxgws4pmffyqagp2rxpfxmfjl11vgvlkjcbglg6fs7y";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
hardware.openrazer = {
|
hardware.openrazer = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue