modified: hosts/blackstar/nixos/configuration.nix modified: hosts/shared/nixos/shared_config.nix modified: modules/default.nix deleted: modules/desktop/apps/art.nix deleted: modules/desktop/apps/cad.nix deleted: modules/desktop/apps/cam.nix deleted: modules/desktop/apps/chat.nix deleted: modules/desktop/apps/code.nix modified: modules/desktop/apps/godot.nix modified: modules/desktop/apps/minecraft.nix modified: modules/desktop/apps/xiv.nix new file: modules/desktop/art.nix new file: modules/desktop/cad.nix new file: modules/desktop/cam.nix new file: modules/desktop/chat.nix new file: modules/desktop/code.nix new file: modules/desktop/daw.nix new file: modules/desktop/games.nix new file: modules/system/bluetooth.nix deleted: modules/system/boot/.grub.nix.swp new file: pkgs/wallpaper-engine.nix
28 lines
No EOL
797 B
Nix
28 lines
No EOL
797 B
Nix
/* -------------------------------------------------------------------------- */
|
|
/* App config: Godot Engine */
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{ lib, config, options, pkgs ? import <nixpkgs>, ... }:
|
|
|
|
with lib;
|
|
let cfg = config.modules.desktop.apps.godot;
|
|
in {
|
|
options.modules.desktop.apps.godot = {
|
|
enable = mkEnableOption false;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nix-ld.enable = true;
|
|
programs.nix-ld.libraries = with pkgs; [
|
|
libgcc
|
|
];
|
|
|
|
environment.systemPackages = with pkgs.unstable; [
|
|
godot_4
|
|
godot_4-export-templates
|
|
gcc-unwrapped
|
|
];
|
|
|
|
environment.sessionVariables = { LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; };
|
|
};
|
|
} |