summaryrefslogtreecommitdiff
path: root/nix/default.nix
diff options
context:
space:
mode:
authorFernando Ayats <ayatsfer@gmail.com>2022-09-01 19:35:50 +0200
committerGitHub <noreply@github.com>2022-09-01 20:35:50 +0300
commitc0a7dffcdc6cb04e5dd7dacf04681f9d2b361b97 (patch)
tree9aa8fb0df9d75c188afaa26ddd9cb4163ac7dc0e /nix/default.nix
parent8581e7178961ebe3a6c25f49583d13f9ee6ee22a (diff)
nix: move wlroots and add nvidia patches (#608)
Diffstat (limited to 'nix/default.nix')
-rw-r--r--nix/default.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/nix/default.nix b/nix/default.nix
index f840da1a..27aaf6bc 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -24,6 +24,7 @@
enableXWayland ? true,
hidpiXWayland ? true,
legacyRenderer ? false,
+ nvidiaPatches ? false,
version ? "git",
}: let
assertXWayland = lib.assertMsg (hidpiXWayland -> enableXWayland) ''
@@ -68,11 +69,7 @@ in
wayland
wayland-protocols
wayland-scanner
- (
- if hidpiXWayland
- then (import ./hidpi_wlroots.nix {inherit wlroots xwayland fetchpatch;})
- else wlroots.override {inherit enableXWayland;}
- )
+ (wlroots.override {inherit enableXWayland hidpiXWayland nvidiaPatches;})
xcbutilwm
]
++ lib.optional enableXWayland xwayland;