From f111a8a3cc257e9ae8d5dbc4bbdb901f046d5bd3 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Fri, 4 Jul 2025 14:32:41 +0300 Subject: [PATCH] feat: add lutris module and enable it on andromedae --- hosts/andromedae/default.nix | 1 + modules/home/applications/games/lutris.nix | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 modules/home/applications/games/lutris.nix diff --git a/hosts/andromedae/default.nix b/hosts/andromedae/default.nix index c0acf89..4598354 100644 --- a/hosts/andromedae/default.nix +++ b/hosts/andromedae/default.nix @@ -65,6 +65,7 @@ in # Home-manager home-manager.users.${defaultUser} = { ataraxia.defaults.role = "desktop"; + ataraxia.programs.lutris.enable = true; ataraxia.programs.mangohud.enable = true; ataraxia.services.modprobed-db.enable = true; ataraxia.theme.catppuccin.enable = true; diff --git a/modules/home/applications/games/lutris.nix b/modules/home/applications/games/lutris.nix new file mode 100644 index 0000000..0edc423 --- /dev/null +++ b/modules/home/applications/games/lutris.nix @@ -0,0 +1,24 @@ +{ + config, + lib, + pkgs, + ... +}: +let + inherit (lib) mkEnableOption mkIf; + cfg = config.ataraxia.programs.lutris; +in +{ + options.ataraxia.programs.lutris = { + enable = mkEnableOption "Enable lutris program"; + }; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ + lutris + wine + ]; + + persist.state.directories = [ ".local/share/lutris" ]; + }; +}