feat(terminal): godot home manager module
This commit is contained in:
@@ -141,6 +141,7 @@
|
||||
./modules/home-manager/devkit.nix
|
||||
];
|
||||
};
|
||||
godot = ./modules/home-manager/godot.nix;
|
||||
neovim = inputs.neovim.homeManagerModules.default;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"]
|
||||
];
|
||||
|
||||
25
modules/home-manager/godot.nix
Normal file
25
modules/home-manager/godot.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user