From 34205bf38484fae45391d4df8db44cb1dabe9569 Mon Sep 17 00:00:00 2001 From: hektor Date: Sat, 11 Jul 2026 22:51:09 +0200 Subject: [PATCH] refactor(gaming): move home-managed config into home manager module --- home/hosts/andromache/default.nix | 1 + home/modules/gaming/default.nix | 15 +++++++++++++++ modules/gaming/default.nix | 6 ------ 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 home/modules/gaming/default.nix diff --git a/home/hosts/andromache/default.nix b/home/hosts/andromache/default.nix index fb0ed00..513e75a 100644 --- a/home/hosts/andromache/default.nix +++ b/home/hosts/andromache/default.nix @@ -31,6 +31,7 @@ browser.enable = true; browser.primary = "librewolf"; cloud.hetzner.enable = true; + gaming.enable = true; comms.signal.enable = true; git.enable = true; git.github.enable = true; diff --git a/home/modules/gaming/default.nix b/home/modules/gaming/default.nix new file mode 100644 index 0000000..06bce00 --- /dev/null +++ b/home/modules/gaming/default.nix @@ -0,0 +1,15 @@ +{ + config, + lib, + ... +}: + +{ + options.gaming.enable = lib.mkEnableOption "gaming"; + + config = lib.mkIf config.gaming.enable { + xdg.configFile."lutris/system.yml".text = lib.generators.toJSON { } { + system.game_path = "${config.home.homeDirectory}/games"; + }; + }; +} diff --git a/modules/gaming/default.nix b/modules/gaming/default.nix index 64ab441..24fe390 100644 --- a/modules/gaming/default.nix +++ b/modules/gaming/default.nix @@ -38,12 +38,6 @@ in mangohud ]; - home-manager.users.${config.host.username} = { - xdg.configFile."lutris/system.yml".text = lib.generators.toJSON { } { - system.game_path = "/home/${config.host.username}/games"; - }; - }; - security.pam.loginLimits = [ { domain = config.host.username;