refactor: change to litterate config
Configuration is now held by the `.org` files. All `.nix` files are tangled from the org-mode files.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
flake.modules.homeManager.game-packages = {
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.home.games.game-packages;
|
||||
in {
|
||||
options.home.games.game-packages.enable = mkEnableOption "Install game launchers and clients";
|
||||
config.home.packages = mkIf cfg.enable (with pkgs; [
|
||||
atlauncher
|
||||
heroic
|
||||
openmw
|
||||
openttd-jgrpp
|
||||
moonlight-qt
|
||||
vintagestory
|
||||
]);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user