desktop/gaming: assert a graphical environment if games are enabled
This commit is contained in:
parent
06801a9a3c
commit
0759d7325f
1 changed files with 11 additions and 0 deletions
|
@ -32,6 +32,17 @@ in
|
|||
|
||||
config = mkMerge [
|
||||
{
|
||||
assertions = [{
|
||||
assertion = (any id (with cfg; [
|
||||
steam.enable
|
||||
prismlauncher.enable
|
||||
lutris.enable
|
||||
olympus.enable
|
||||
puzzles.enable
|
||||
])) -> config.info.graphical;
|
||||
message = "Games cannot be enabled in a non-graphical environment";
|
||||
}];
|
||||
|
||||
home.home.packages = with pkgs; [
|
||||
(mkIf cfg.prismlauncher.enable cfg.prismlauncher.package)
|
||||
alsa-oss
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue