Main
This commit is contained in:
parent
fc0abdd4bb
commit
aca73cdd0f
73 changed files with 3873 additions and 381 deletions
|
|
@ -1,3 +1,21 @@
|
|||
# Classic Game Collection (Home Module)
|
||||
#
|
||||
# Provides:
|
||||
# - Small set of lightweight, classic desktop games
|
||||
#
|
||||
# Included:
|
||||
# - KPat (Patience / Solitaire)
|
||||
# - KSudoku
|
||||
# - Space Cadet Pinball
|
||||
# - Palapeli (jigsaw puzzles)
|
||||
# - KMines (Minesweeper clone)
|
||||
# - KBlocks (Tetris clone)
|
||||
# - KMahjongg (Mahjong solitaire)
|
||||
#
|
||||
# Options:
|
||||
# - enable → Enable the Classic Game Collection
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
|
|
@ -5,16 +23,18 @@ let
|
|||
in
|
||||
{
|
||||
options.nyx-module.home.classic-game-collection = {
|
||||
enable = lib.mkEnableOption "Enable classic-game-collection (home) module";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.classic-game-collection;
|
||||
description = "Package to install for classic-game-collection.";
|
||||
};
|
||||
enable = lib.mkEnableOption "Enable the Classic Game Collection (home module)";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
home.packages = with pkgs; [
|
||||
kdePackages.kpat
|
||||
kdePackages.ksudoku
|
||||
space-cadet-pinball
|
||||
kdePackages.palapeli
|
||||
kdePackages.kmines
|
||||
kdePackages.kblocks
|
||||
kdePackages.libkmahjongg
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,20 @@
|
|||
# PrismLauncher (Home Module)
|
||||
#
|
||||
# Provides:
|
||||
# - PrismLauncher (Minecraft launcher)
|
||||
# - Optional inclusion of ffmpeg (some mods require it)
|
||||
# - Configurable list of JDKs (for modpacks that need specific versions)
|
||||
#
|
||||
# Options:
|
||||
# - enable → Enable PrismLauncher
|
||||
# - includeFfmpeg→ Include ffmpeg for mods
|
||||
# - jdks → List of Java runtimes for PrismLauncher
|
||||
#
|
||||
# Notes:
|
||||
# - Installed via home.packages
|
||||
# - JDKs are added to PATH so PrismLauncher can discover them
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
|
|
@ -5,16 +22,22 @@ let
|
|||
in
|
||||
{
|
||||
options.nyx-module.home.prismlauncher = {
|
||||
enable = lib.mkEnableOption "Enable prismlauncher (home) module";
|
||||
enable = lib.mkEnableOption "Enable PrismLauncher (Minecraft launcher)";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.prismlauncher;
|
||||
description = "Package to install for prismlauncher.";
|
||||
includeFfmpeg = lib.mkEnableOption "Include ffmpeg for mods that require it";
|
||||
|
||||
jdks = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = [ pkgs.jdk17 ];
|
||||
example = [ pkgs.jdk8 pkgs.jdk17 pkgs.jdk21 ];
|
||||
description = "List of Java runtimes to make available for PrismLauncher.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
home.packages =
|
||||
[ pkgs.prismlauncher ]
|
||||
++ lib.optionals cfg.includeFfmpeg [ pkgs.ffmpeg ]
|
||||
++ cfg.jdks;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue