bao: explicitly use nixGL
parent
22acf5787e
commit
d3c0db3363
|
@ -11,7 +11,7 @@ in
|
||||||
_enable = lib.mkOption {
|
_enable = lib.mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
description = "Whether the graphics is implicitly enabled (final)";
|
description = "Whether the graphics is implicitly enabled (final)";
|
||||||
internal = true;
|
# internal = true;
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
useNixGL = {
|
useNixGL = {
|
||||||
|
@ -35,7 +35,7 @@ in
|
||||||
# they will also need to do `config.base.shells.enable`
|
# they will also need to do `config.base.shells.enable`
|
||||||
# generally, we want the behavior: import means enable
|
# generally, we want the behavior: import means enable
|
||||||
config = lib.mkIf cfgEnable {
|
config = lib.mkIf cfgEnable {
|
||||||
base.graphics._enable = cfgEnable;
|
base.graphics._enable = lib.mkForce true;
|
||||||
base.shells = {
|
base.shells = {
|
||||||
shellAliases = lib.mkIf (cfg.useNixGL.defaultPackage != null) {
|
shellAliases = lib.mkIf (cfg.useNixGL.defaultPackage != null) {
|
||||||
nixGL = cfg.useNixGL.defaultPackage;
|
nixGL = cfg.useNixGL.defaultPackage;
|
||||||
|
|
|
@ -108,6 +108,7 @@
|
||||||
# defaults to a bad value (on purpose), we should configure a
|
# defaults to a bad value (on purpose), we should configure a
|
||||||
# it to be the proper path
|
# it to be the proper path
|
||||||
base.keepass.path = "/perso/garden/keepass.kdbx";
|
base.keepass.path = "/perso/garden/keepass.kdbx";
|
||||||
|
base.graphics.useNixGL.defaultPackage = "nixGLNvidia";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
# optionally pass inarguments to module
|
# optionally pass inarguments to module
|
||||||
|
|
Loading…
Reference in New Issue