From aef1338d79fc379efd137e2e506a72b59aaee15a Mon Sep 17 00:00:00 2001 From: moons Date: Wed, 29 Jul 2026 14:30:22 +0900 Subject: [PATCH] minecraft --- hosts/default.nix | 1 + modules/applications/minecraft/home.nix | 4 ++++ modules/profiles/README.md | 1 + modules/profiles/workload/game/meta.nix | 7 +++++++ 4 files changed, 13 insertions(+) create mode 100644 modules/applications/minecraft/home.nix create mode 100644 modules/profiles/workload/game/meta.nix diff --git a/hosts/default.nix b/hosts/default.nix index 5a90604..8700ae2 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -88,6 +88,7 @@ "security.secure-boot" "security.tpm-storage" "workload.development" + "workload.game" "workload.personal" ]; }; diff --git a/modules/applications/minecraft/home.nix b/modules/applications/minecraft/home.nix new file mode 100644 index 0000000..defe6fe --- /dev/null +++ b/modules/applications/minecraft/home.nix @@ -0,0 +1,4 @@ +{ lib, pkgs, ... }: +lib.mkIf pkgs.stdenv.hostPlatform.isLinux { + home.packages = [ pkgs.prismlauncher ]; +} diff --git a/modules/profiles/README.md b/modules/profiles/README.md index 8a509b0..81e4974 100644 --- a/modules/profiles/README.md +++ b/modules/profiles/README.md @@ -35,6 +35,7 @@ when removing it from any supported host would make that host invalid. | `platform.thinkpad-x1` | Intel ThinkPad X1 running NixOS | | `platform.vm` | UEFI QEMU NixOS guest with NFS client support | | `workload.development` | NixOS, macOS with Home Manager | +| `workload.game` | NixOS with Home Manager | | `workload.personal` | NixOS, macOS with Home Manager | | `workload.remote-access` | NixOS, macOS | | `workload.server` | NixOS, macOS with Home Manager | diff --git a/modules/profiles/workload/game/meta.nix b/modules/profiles/workload/game/meta.nix new file mode 100644 index 0000000..9d0d235 --- /dev/null +++ b/modules/profiles/workload/game/meta.nix @@ -0,0 +1,7 @@ +{ + description = "Linux gaming applications"; + + includes = [ + "applications.minecraft" + ]; +}