Noctalia-shell and templates #464
-
|
Hi! Prior to moving to wrappers, I've been using Noctalia-shell templates for some apps like helix, yazi, etc. As an example, for helix, it creates it under ~/.config/helix/themes/noctalia.toml How can I use it in my wrapped helix config? Is there a way to add this directory? Or source the content to an entry in themes = {}? Cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
I... am not entirely sure. in general nix is highly likely to break that sort of thing, this even more so. Noctalia-shell allows you to specify where these files are placed correct? I would have it place them directly into my config directory and then use readFile, personally. Many programs allow you to include a file at a particular location, for those you could just tell it to look wherever noctalia-shell puts the thing at runtime. Many modules also allow this. i.e. you can often put an impure path in options that take a path. But the helix module currently does not allow this for themes, because the option for themes in that module does not take paths. And as far as I am aware, helix config cannot specify arbitrary theme locations either (although maybe when helix gets a plugin API, you will be able to pick somewhere via that) However, we can cheat it a bit, it won't be the easiest thing... in the helix module: # and do NOT make a theme in config.themes named noctalia or it will overwrite this one.
config.buildCommand.linkThemeHack = ''
mkdir -p "${config.generatedConfig.placeholder}/helix/themes"
ln -s /home/YOURUSER/.config/helix/themes/noctalia.toml "${config.generatedConfig.placeholder}/helix/themes"
'';Alternatively, just use it normally, and copy the file into your config yourself. |
Beta Was this translation helpful? Give feedback.
I... am not entirely sure. in general nix is highly likely to break that sort of thing, this even more so.
Noctalia-shell allows you to specify where these files are placed correct? I would have it place them directly into my config directory and then use readFile, personally.
Many programs allow you to include a file at a particular location, for those you could just tell it to look wherever noctalia-shell puts the thing at runtime.
Many modules also allow this. i.e. you can often put an impure path in options that take a path.
But the helix module currently does not allow this for themes, because the option for themes in that module does not take paths.
And as far as I am aware, helix c…