Add a role for lutris.

This commit is contained in:
Tom Alexander
2026-10-27 21:14:01 -04:00
parent ae9683b8a9
commit 5176f729ca
4 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
lutris.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install lutris.";
};
};
config = lib.mkIf (config.me.lutris.enable && config.me.graphical) {
environment.systemPackages = with pkgs; [
lutris
];
# If we need additional libraries for any games:
# (lutris.override {
# extraLibraries = pkgs: [
# # List library dependencies here
# ];
# extraPkgs = pkgs: [
# # List package dependencies here
# ];
# })
};
}