feat(terminal): godot home manager module

This commit is contained in:
Guz
2026-03-25 19:17:01 -03:00
parent 05bb934532
commit 97d7f98f15
4 changed files with 30 additions and 9 deletions

View File

@@ -141,6 +141,7 @@
./modules/home-manager/devkit.nix
];
};
godot = ./modules/home-manager/godot.nix;
neovim = inputs.neovim.homeManagerModules.default;
};

View File

@@ -9,6 +9,7 @@
imports = [
inputs.nix-flatpak.homeManagerModules.nix-flatpak
self.homeManagerModules.devkit
self.homeManagerModules.godot
./browser.nix
./desktop.nix
@@ -26,7 +27,6 @@
self.packages.${pkgs.stdenv.hostPlatform.system}.audacity
blender
bitwarden-desktop
godot
inkscape
krita
nextcloud-client
@@ -43,14 +43,8 @@
self.packages.${pkgs.stdenv.hostPlatform.system}.cal-sans
]);
home.file = let
godottemplates = pkgs.godot-export-templates-bin;
godotname = builtins.replaceStrings ["-"] ["."] godottemplates.version;
in {
".local/share/godot/export_templates/${godotname}" = {
source = "${godottemplates}/share/godot/export_templates/${godotname}";
};
};
# Godot
programs.godot.enable = true;
# OBS Studio
programs.obs-studio.enable = true;

View File

@@ -48,6 +48,7 @@ with lib; {
["0755" ".local/share/audacity4"]
["0755" ".local/share/direnv"]
["0755" ".local/share/flatpak"]
["0755" ".local/share/godot"]
["0700" ".local/share/keyrings"]
["0700" ".local/share/Steam"]
];

View File

@@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.programs.godot;
in {
options.programs.godot = {
enable = mkEnableOption "";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [godot];
home.file = let
godottemplates = pkgs.godot-export-templates-bin;
godotname = builtins.replaceStrings ["-"] ["."] godottemplates.version;
in {
".local/share/godot/export_templates/${godotname}" = {
source = "${godottemplates}/share/godot/export_templates/${godotname}";
};
};
};
}