feat: add patched aquamarine option
This commit is contained in:
parent
3b136ffd1c
commit
a8e1b6ecbc
5 changed files with 51 additions and 2 deletions
|
@ -1,10 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../graphics
|
||||
];
|
||||
# Enable the X11 windowing system.
|
||||
# You can disable this if you're only using the Wayland session.
|
||||
services.xserver.enable = false;
|
||||
|
|
23
modules/graphics/default.nix
Normal file
23
modules/graphics/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.hardware.nvidia;
|
||||
in
|
||||
{
|
||||
options.hardware.nvidia.usePatchedAquamarine = lib.mkEnableOption "q9i's patched aquamarine with working sleep on Nvidia";
|
||||
|
||||
config = lib.mkIf cfg.usePatchedAquamarine {
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
aquamarine = prev.aquamarine.overrideAttrs {
|
||||
src = inputs.aq;
|
||||
version = inputs.aq.rev;
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue