mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
49592d7f01
I also fixed the long-time occuring error when using the newest version of the channel (or the unstable one). It turns out to be a simple type error with the `my.user' attribute. (To be honest the error messages are quite horrible.) On another note, I also accidentally bricked my NixOS setup after a garbage collection and a horrible update. The breakage includes not being able to use any of the builtin tools of Nix (e.g., nix, nix-env, nixos-rebuild) due to a shared library error that has been garbage collected. Which means I have to reinstall it. (I seem to have a talent for breaking things, if only I'm paid for it.)
37 lines
937 B
Nix
Executable File
37 lines
937 B
Nix
Executable File
# 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 {
|
|
defold.enable = mkBoolOption false;
|
|
godot.enable = mkBoolOption false;
|
|
unity3d.enable = mkBoolOption false;
|
|
};
|
|
|
|
config = {
|
|
my.packages = with pkgs;
|
|
(if cfg.godot.enable then [
|
|
godot # The Godot, not to be confused with a certain prosecutor.
|
|
] else []) ++
|
|
|
|
(if cfg.defold.enable then [
|
|
defold
|
|
] else []) ++
|
|
|
|
(if cfg.unity3d.enable then [
|
|
unity3d # The Unity, not to be confused with a certain ideal.
|
|
unityhub # The ideal hub for your Unity projects.
|
|
] else []);
|
|
};
|
|
}
|