From 32a5792162def5a8763b07fe03e881b892055392 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Sun, 24 Nov 2024 16:08:59 -0800 Subject: [PATCH] lutris: module init --- home/modules/lutris.nix | 19 +++++++++++++++++++ hosts/snowhawk/home.nix | 10 +++------- 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 home/modules/lutris.nix 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