bao: explicitly use nixGL

pull/5/head
pegasust 2023-01-13 00:24:32 -07:00
parent 22acf5787e
commit d3c0db3363
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ in
_enable = lib.mkOption {
type = types.bool;
description = "Whether the graphics is implicitly enabled (final)";
internal = true;
# internal = true;
default = false;
};
useNixGL = {
@ -35,7 +35,7 @@ in
# they will also need to do `config.base.shells.enable`
# generally, we want the behavior: import means enable
config = lib.mkIf cfgEnable {
base.graphics._enable = cfgEnable;
base.graphics._enable = lib.mkForce true;
base.shells = {
shellAliases = lib.mkIf (cfg.useNixGL.defaultPackage != null) {
nixGL = cfg.useNixGL.defaultPackage;

View File

@ -108,6 +108,7 @@
# defaults to a bad value (on purpose), we should configure a
# it to be the proper path
base.keepass.path = "/perso/garden/keepass.kdbx";
base.graphics.useNixGL.defaultPackage = "nixGLNvidia";
}
];
# optionally pass inarguments to module