aboutsummaryrefslogtreecommitdiff
path: root/modules/global.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/global.nix')
-rw-r--r--modules/global.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/global.nix b/modules/global.nix
index e187685..f26be5f 100644
--- a/modules/global.nix
+++ b/modules/global.nix
@@ -1,4 +1,4 @@
-{ config, lib, pkgs, ...}:
+{ config, lib, pkgs, inputs, ...}:
let
cfg = config.modules.global;
in
@@ -20,11 +20,18 @@ in
foot.enable = true;
sway = {
enable = true;
- package = if cfg.notNixOS then
- config.lib.nixGL.wrap pkgs.sway else pkgs.sway;
+ wrapWithNixGL = true;
+# package = if cfg.notNixOS then
+ # (config.lib.nixGL.wrap pkgs.sway) else pkgs.sway;
+# package = config.lib.nixGL.wrap pkgs.sway;
};
};
+ nixGL = lib.mkIf cfg.notNixOS {
+ packages = inputs.nixgl.packages;
+ defaultWrapper = "mesa";
+ };
+
programs = {
home-manager.enable = true;
};
@@ -44,6 +51,7 @@ in
wl-clipboard
mako
wmenu
+ cmatrix
]);
};