feat: add patched aquamarine option

This commit is contained in:
Youwen Wu 2025-01-22 22:31:51 -08:00
parent 3b136ffd1c
commit a8e1b6ecbc
Signed by untrusted user: youwen
GPG key ID: 865658ED1FE61EC3
5 changed files with 51 additions and 2 deletions

View file

@ -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;

View 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;
};
})
];
};
}