aerc and stylesets #562
-
|
Hi! I'm trying to import a styleset directly from Github and I'm not sure how I should do it or even if it's possible with how the wrapper works. I thought I could simply import stylesets = let
catppuccin = builtins.fetchTarball {
url = "https://github.com/catppuccin/aerc/archive/refs/heads/main.tar.gz";
sha256 = "1v8j8h9i473za7m8lq9ig7y3kb8rhyqijqiwxi96xfkpwvqn90cd";
};
in {
"catppuccin-mocha" = builtins.readFile "${catppuccin}/dist/catppuccin-mocha";
};But it seems to try and interpret the file as Nix and break. Any idea how to do that or should I just hardcode the content into my config? Cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@appleptree We have ``
${lib.generators.toINIWithGlobalSection { inherit (config.stylesets.<name>) globalSection; }}
${config.stylesets.<name>.content}
${lib.generators.toINIWithGlobalSection { inherit (config.stylesets.<name>) sections; }}
``? Add the path using |
Beta Was this translation helpful? Give feedback.
-
|
Hey, thanks! I'll try this later today. Don't ever be sorry to have a life :). |
Beta Was this translation helpful? Give feedback.
@appleptree We have
stylesets.<name>sectionsandstylesets.<name>.globalSection, should we have astylesets.<name>.content, and then`` ${lib.generators.toINIWithGlobalSection { inherit (config.stylesets.<name>) globalSection; }} ${config.stylesets.<name>.content} ${lib.generators.toINIWithGlobalSection { inherit (config.stylesets.<name>) sections; }} ``?
@karldelandsheere
Add the path using
config.settings.ui.stylesets-dirs. Those options don't take paths. That settings option is the one we use to add our stylesets path, and it will append to whatever you have if you provided your own value. Sorry it took me so long to get to this.