mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-19 01:54:02 +05:30
Hacky declarative godot settings
This commit is contained in:
parent
1476305c98
commit
c824064354
6 changed files with 136 additions and 177 deletions
23
modules/user/godot/declarative-godot-settings/default.nix
Normal file
23
modules/user/godot/declarative-godot-settings/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.userSettings.godot;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.file.".config/declarative-godot-settings/apply_settings.gd".source = config.lib.stylix.colors {
|
||||
template = builtins.readFile ./apply_settings.gd;
|
||||
extension = ".gd";
|
||||
};
|
||||
home.file.".config/declarative-godot-settings/apply_settings.gd.uid".source = ./apply_settings.gd.uid;
|
||||
home.file.".config/declarative-godot-settings/project.godot".source = ./project.godot;
|
||||
home.file.".config/declarative-godot-settings/dummy_scene.tscn".source = ./dummy_scene.tscn;
|
||||
|
||||
home.packages = [
|
||||
(pkgs.writeScriptBin "declarative-godot-settings" ''
|
||||
#!/bin/sh
|
||||
${pkgs.godot}/bin/godot --editor --path ${config.home.homeDirectory}/.config/declarative-godot-settings;
|
||||
'')
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue