From c38e438ae29bee403ec52b5a69a29ebff04db3df Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sat, 22 Mar 2025 20:24:27 +0100 Subject: [PATCH] module(system.apps.lutris): Move lutris from flatpak to system to benefit of system graphics driver --- hosts/perso-desktop/configuration.nix | 1 + modules/home/apps/flatpak.nix | 1 - modules/system/apps/default.nix | 1 + modules/system/apps/lutris.nix | 17 +++++++++++++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 modules/system/apps/lutris.nix diff --git a/hosts/perso-desktop/configuration.nix b/hosts/perso-desktop/configuration.nix index 5a0eeb4..c9fedb0 100644 --- a/hosts/perso-desktop/configuration.nix +++ b/hosts/perso-desktop/configuration.nix @@ -33,6 +33,7 @@ flatpak.enable = true; steam.enable = true; qemu.enable = true; + lutris.enable = true; }; boot.plymouth.enable = true; diff --git a/modules/home/apps/flatpak.nix b/modules/home/apps/flatpak.nix index 8bee421..d6f2213 100644 --- a/modules/home/apps/flatpak.nix +++ b/modules/home/apps/flatpak.nix @@ -20,7 +20,6 @@ in packages = [ # Gaming { appId = "com.discordapp.Discord"; origin = "flathub"; } - { appId = "net.lutris.Lutris"; origin = "flathub"; } # Pro { appId = "ch.protonmail.protonmail-bridge"; origin = "flathub"; } diff --git a/modules/system/apps/default.nix b/modules/system/apps/default.nix index 5a3ce18..39df1d7 100644 --- a/modules/system/apps/default.nix +++ b/modules/system/apps/default.nix @@ -3,6 +3,7 @@ { imports = [ ./flatpak.nix + ./lutris.nix ./qemu.nix ./steam.nix ]; diff --git a/modules/system/apps/lutris.nix b/modules/system/apps/lutris.nix new file mode 100644 index 0000000..d093cc3 --- /dev/null +++ b/modules/system/apps/lutris.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.modules.system.apps.lutris; +in +{ + options.modules.system.apps.lutris = { + enable = mkEnableOption '' + Enable lutris + ''; + }; + + config = mkIf cfg.enable { + environment.systemPackages = with pkgs; [ lutris ]; + }; +} \ No newline at end of file