Add a role for lutris.
This commit is contained in:
35
nix/configuration/roles/lutris/default.nix
Normal file
35
nix/configuration/roles/lutris/default.nix
Normal 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
|
||||
# ];
|
||||
# })
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user