Personal Nix setup

Add minecraft to apps

Changed files
+24 -1
home
machines
pepper
+1
home/apps/default.nix
···
./firefox.nix
./obsidian.nix
./ollama.nix
+
./minecraft.nix
./wezterm
];
}
+22
home/apps/minecraft.nix
···
+
{ lib, config, pkgs, ... }:
+
+
with lib;
+
let
+
cfg = config.modules.apps;
+
in {
+
options.modules.apps.minecraft = {
+
enable = mkOption {
+
default = false;
+
description = "Whether to enable Minecraft via Prism.";
+
type = types.bool;
+
};
+
};
+
+
config = mkIf (cfg.enable && cfg.minecraft.enable) {
+
home.packages = with pkgs; [
+
(prismlauncher.override {
+
jdks = [ temurin-bin-21 ];
+
})
+
];
+
};
+
}
+1 -1
machines/pepper/home.nix
···
wezterm.enable = true;
firefox.enable = true;
obsidian.enable = true;
-
ollama.enable = true;
+
minecraft.enable = true;
};
};
}