refactoring home manager modules
This commit is contained in:
parent
20de142350
commit
f59d282c12
44 changed files with 0 additions and 80 deletions
19
modules/home/game/minescraft.nix
Normal file
19
modules/home/game/minescraft.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.sneeuwvlok.game.minecraft;
|
||||
in {
|
||||
options.sneeuwvlok.game.minecraft = {
|
||||
enable = mkEnableOption "enable minecraft";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [prismlauncher];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue