mirror of
https://github.com/tboerger/nixos-config
synced 2026-11-30 01:04:46 +01:00
33 lines
378 B
Nix
33 lines
378 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
options,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.personal.programs.lutris;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
personal = {
|
|
programs = {
|
|
lutris = {
|
|
enable = mkEnableOption "Lutris";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment = {
|
|
systemPackages = with pkgs; [
|
|
lutris
|
|
];
|
|
};
|
|
};
|
|
}
|