mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
32 lines
724 B
Nix
32 lines
724 B
Nix
![]() |
# I've yet to delve into game development but here we are.
|
||
|
# This contains several toolchains such as Unity, Godot Engine, and Love.
|
||
|
{ config, options, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.modules.dev.game-dev;
|
||
|
in
|
||
|
{
|
||
|
options.modules.dev.game-dev =
|
||
|
let mkBoolOption = bool: mkOption {
|
||
|
type = types.bool;
|
||
|
default = bool;
|
||
|
}; in {
|
||
|
godot.enable = mkBoolOption false;
|
||
|
unity3d.enable = mkBoolOption false;
|
||
|
};
|
||
|
|
||
|
config = {
|
||
|
home.packages = with pkgs;
|
||
|
(if cfg.godot.enable then [
|
||
|
godot # The Godot, not to be confused with a certain prosecutor.
|
||
|
] else []) ++
|
||
|
|
||
|
(if cfg.unity3d.enable then [
|
||
|
unity3d
|
||
|
unityhub
|
||
|
] else []);
|
||
|
};
|
||
|
}
|