summaryrefslogtreecommitdiff
path: root/modules/gaming
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gaming')
-rw-r--r--modules/gaming/default.nix19
-rw-r--r--modules/gaming/homestuck.nix18
-rw-r--r--modules/gaming/minecraft.nix17
-rw-r--r--modules/gaming/steam.nix34
4 files changed, 0 insertions, 88 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/modules/gaming/steam.nix
deleted file mode 100644
index 53ab252..0000000
--- a/modules/gaming/steam.nix
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- lib,
- config,
- ...
-}: let
- inherit (lib) mkIf;
- cfg = config.gaming;
-in {
- config = mkIf cfg.steam {
- nixpkgs.config.allowUnfreePredicate = pkg:
- builtins.elem (lib.getName pkg) [
- "steam"
- "steam-original"
- "steam-runtime"
- ];
-
- programs.gamescope = {
- enable = true;
- capSysNice = true;
- };
-
- programs.steam = {
- enable = true;
- remotePlay.openFirewall = true;
- dedicatedServer.openFirewall = true;
- localNetworkGameTransfers.openFirewall = true;
- gamescopeSession.enable = true;
- };
-
- # controllers
- hardware.xone.enable = true;
- hardware.steam-hardware.enable = true;
- };
-}