diff --git a/home/modules/lutris.nix b/home/modules/lutris.nix new file mode 100644 index 0000000..fd5fde4 --- /dev/null +++ b/home/modules/lutris.nix @@ -0,0 +1,19 @@ +{ lib, config, pkgs, inputs, ... }: + +let + cfg = config.snowhawk.lutris; +in +{ + options.snowhawk.lutris = { + enable = lib.mkEnableOption "lutris"; + }; + + config = lib.mkIf cfg.enable { + home.packages = [ + (inputs.umu.packages.${pkgs.system}.umu.override + { version = "${inputs.umu.shortRev}"; }) + + pkgs.lutris + ]; + }; +} diff --git a/hosts/snowhawk/home.nix b/hosts/snowhawk/home.nix index c5be67d..01ce9ed 100644 --- a/hosts/snowhawk/home.nix +++ b/hosts/snowhawk/home.nix @@ -1,4 +1,4 @@ -{ pkgs, config, inputs, ... }: +{ pkgs, config, ... }: { imports = [ @@ -18,6 +18,7 @@ pipewire-controller.enable = true; # Games + lutris.enable = true; xivlauncher.enable = true; # Term Tools @@ -55,12 +56,7 @@ "~/obsidian" ]; - home.packages = with pkgs; let - umu = inputs.umu.packages.${pkgs.system}.umu.override { version = "${inputs.umu.shortRev}"; }; - in - [ - umu - lutris + home.packages = with pkgs; [ # (writeShellScriptBin "battlenet" '' # export WINEARCH=win64 # export WINEPREFIX=$HOME/.wine-battlenet