mirror of
https://github.com/tboerger/nixos-config
synced 2025-02-22 23:31:08 +01:00
29 lines
400 B
Nix
29 lines
400 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.profile.programs.minecraft;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
profile = {
|
|
programs = {
|
|
minecraft = {
|
|
enable = mkEnableOption "Minecraft";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home = {
|
|
packages = with pkgs; [
|
|
mcrcon
|
|
packwiz
|
|
prismlauncher
|
|
];
|
|
};
|
|
};
|
|
}
|