kaas
This commit is contained in:
parent
b8e2429566
commit
b06525436b
10 changed files with 88 additions and 22 deletions
21
modules/desktop/games/minecraft.nix
Normal file
21
modules/desktop/games/minecraft.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkIf mkForce mkMerge;
|
||||
inherit (lib.attrsets) attrValues;
|
||||
|
||||
cfg = config.modules.desktop.games.minecraft;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.games.minecraft = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
enable = mkEnableOption "minecraft (Modrinth)";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable
|
||||
{
|
||||
user.packages = attrValues {
|
||||
inherit (pkgs) modrinth-app minecraft;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue