feat: add patched aquamarine option
This commit is contained in:
parent
3b136ffd1c
commit
a8e1b6ecbc
5 changed files with 51 additions and 2 deletions
18
flake.lock
generated
18
flake.lock
generated
|
@ -1,5 +1,22 @@
|
|||
{
|
||||
"nodes": {
|
||||
"aq": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1736050555,
|
||||
"narHash": "sha256-TUoKhJ2QMK2AYTRvBCRpYFmaSihiF/OgB+HDZjamZtI=",
|
||||
"owner": "quantum9innovation",
|
||||
"repo": "aquamarine",
|
||||
"rev": "546ce7963d18cbd30b32bf8d464f9ab3f6d54f74",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "quantum9innovation",
|
||||
"ref": "patch-125",
|
||||
"repo": "aquamarine",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"base16": {
|
||||
"inputs": {
|
||||
"fromYaml": "fromYaml"
|
||||
|
@ -362,6 +379,7 @@
|
|||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"aq": "aq",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixvim": "nixvim",
|
||||
|
|
|
@ -31,6 +31,10 @@
|
|||
url = "github:kaitotlex/wallpaper";
|
||||
flake = false;
|
||||
};
|
||||
aq = {
|
||||
url = "github:quantum9innovation/aquamarine/patch-125";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
virtualisation.waydroid.enable = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_5_15;
|
||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||
#systemdefaults
|
||||
networking.hostName = "kuroko"; # Define your hostname.
|
||||
services.ratbagd.enable = true;
|
||||
|
@ -34,6 +34,8 @@
|
|||
hardware.graphics.enable32Bit = true;
|
||||
|
||||
hardware.nvidia = {
|
||||
# custom option defined in graphics/default.nix
|
||||
usePatchedAquamarine = true;
|
||||
|
||||
# Modesetting is required.
|
||||
modesetting.enable = lib.mkForce true;
|
||||
|
|
|
@ -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