diff options
| author | Miran Bastaja <mbastaja@sorre.xyz> | 2025-03-10 13:57:25 +0100 |
|---|---|---|
| committer | Miran Bastaja <mbastaja@sorre.xyz> | 2025-03-10 13:57:52 +0100 |
| commit | 1bc848a11b9a45cc167df2ec9ef7e2e7f6f798ce (patch) | |
| tree | 60162e77013294826cb0dfb819f8c5a99a9e2a6c | |
| parent | f720e54d6a600f6dfa38a28f5f17753d7f25a8ee (diff) | |
refactor: split gaming out of hyprdesktop
| -rw-r--r-- | hosts/underworld/home.nix | 1 | ||||
| -rw-r--r-- | share/hm-modules/hyprdesktop.nix | 21 | ||||
| -rw-r--r-- | share/home/gaming.nix | 14 |
3 files changed, 15 insertions, 21 deletions
diff --git a/hosts/underworld/home.nix b/hosts/underworld/home.nix index b88799f..b288272 100644 --- a/hosts/underworld/home.nix +++ b/hosts/underworld/home.nix @@ -21,6 +21,7 @@ (flakeRoot + /share/home/dev-stuff.nix) (flakeRoot + /share/home/shell.nix) (flakeRoot + /share/home/gui-tools.nix) + (flakeRoot + /share/home/gaming.nix) ]; custom.hyprdesktop = { enable = true; diff --git a/share/hm-modules/hyprdesktop.nix b/share/hm-modules/hyprdesktop.nix index 82adbff..94620a4 100644 --- a/share/hm-modules/hyprdesktop.nix +++ b/share/hm-modules/hyprdesktop.nix @@ -43,16 +43,6 @@ in example = "true"; }; - enableGaming = mkOption { - type = types.bool; - default = false; - example = "true"; - }; - enableWindowsCompat = mkOption { - type = types.bool; - default = false; - example = "true"; - }; enableGitAnnex = mkOption { type = types.bool; default = true; @@ -72,17 +62,6 @@ in xdg-utils ] ++ lists.optionals cfg.hasBluetooth [ overskride ] - ++ lists.optionals cfg.enableGaming [ - prismlauncher - jdk17_headless - wineWowPackages.wayland - aisleriot - heroic - ] - ++ lists.optionals (cfg.enableWindowsCompat || cfg.enableGaming) [ - wineWowPackages.wayland - qemu_kvm - ] ++ lists.optionals cfg.hasBrightnessCtl [ brightnessctl ] ++ lists.optionals cfg.enableGitAnnex [ git-annex diff --git a/share/home/gaming.nix b/share/home/gaming.nix new file mode 100644 index 0000000..d63e66b --- /dev/null +++ b/share/home/gaming.nix @@ -0,0 +1,14 @@ +{ pkgs, ... }: +{ + home.packages = + [ pkgs.wineWowPackages.wayland ] + ++ builtins.attrValues { + inherit (pkgs) + prismlauncher + jdk17_headless + aisleriot + heroic + qemu_kvm + ; + }; +} |
