bao: explicitly use nixGL
parent
22acf5787e
commit
d3c0db3363
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue