summaryrefslogtreecommitdiff
path: root/modules/gaming
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
committerFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
commit68d03fe362b7e0df11662d8d6a1e01eac0bfae77 (patch)
treea76abd05f662f73b4083ddb0d8bf0d72c29e5a74 /modules/gaming
parentupdate commits (diff)
downloaddotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.gz
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.bz2
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.zip
refactor: remove modules folder, fully split home and system modules
Diffstat (limited to '')
-rw-r--r--modules/gaming/default.nix19
-rw-r--r--modules/gaming/homestuck.nix18
-rw-r--r--modules/gaming/minecraft.nix17
-rw-r--r--system/gaming/steam.nix (renamed from modules/gaming/steam.nix)4
4 files changed, 2 insertions, 56 deletions
diff --git a/modules/gaming/default.nix b/modules/gaming/default.nix
deleted file mode 100644
index a0c826c..0000000
--- a/modules/gaming/default.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- lib,
- config,
- ...
-}: let
- inherit (lib) mkEnableOption;
-in {
- imports = [
- ./homestuck.nix
- ./minecraft.nix
- ./steam.nix
- ];
-
- options.gaming = {
- homestuck = mkEnableOption "Install the unofficial homestuck collection.";
- minecraft = mkEnableOption "Install the minecraft block game.";
- steam = mkEnableOption "Install the steam game launcher.";
- };
-}
diff --git a/modules/gaming/homestuck.nix b/modules/gaming/homestuck.nix
deleted file mode 100644
index 681325b..0000000
--- a/modules/gaming/homestuck.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- lib,
- config,
- inputs,
- system,
- ...
-}: let
- inherit (lib) mkIf;
- cfg = config.gaming;
-in {
- config = mkIf cfg.homestuck {
- home-manager.users.${config.user} = {
- home.packages = [
- inputs.self.packages.${system}.unofficial-homestuck-collection
- ];
- };
- };
-}
diff --git a/modules/gaming/minecraft.nix b/modules/gaming/minecraft.nix
deleted file mode 100644
index 5de20e6..0000000
--- a/modules/gaming/minecraft.nix
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- lib,
- config,
- pkgs,
- ...
-}: let
- inherit (lib) mkIf;
- cfg = config.gaming;
-in {
- config = mkIf cfg.minecraft {
- home-manager.users.${config.user} = {
- home.packages = with pkgs; [
- prismlauncher
- ];
- };
- };
-}
diff --git a/modules/gaming/steam.nix b/system/gaming/steam.nix
index 53ab252..cd243e5 100644
--- a/modules/gaming/steam.nix
+++ b/system/gaming/steam.nix
@@ -4,9 +4,9 @@
...
}: let
inherit (lib) mkIf;
- cfg = config.gaming;
+ cfg = config.gaming.steam;
in {
- config = mkIf cfg.steam {
+ config = mkIf cfg.enable {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"