Using eww
with home-manager
#620
-
I'm using Based on this piece of code, it seems that Is there a way to get |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
With the current code I'd assume its impossible, unless you can get home manager to fix the path of your eww config. I don't really see a way to easily keep the symlinked path tho, since the path canonicalized (resolves symlinks) the path and not doing it would break relative paths: So either patch eww to normalize instead of canonicalize, or fix the eww path in a way or another (I don't know anything about home manager, there might have a work around) |
Beta Was this translation helpful? Give feedback.
-
Yeah, if the canonicalization of the config directory path is dropped, it should work fine. Not clear to me why the config directory path should be canonical here, instead of merely normalised, although I'm guessing it's because Rust's stdlib still doesn't have a As a work-around on the home-manager side of things, you could try this: |
Beta Was this translation helpful? Give feedback.
Yeah, if the canonicalization of the config directory path is dropped, it should work fine. Not clear to me why the config directory path should be canonical here, instead of merely normalised, although I'm guessing it's because Rust's stdlib still doesn't have a
Path::normalize
function.cargo-util
has an appropriate function, internally used by Cargo.As a work-around on the home-manager side of things, you could try this:
programs.eww.configDir = config.lib.file.mkOutOfStoreSymlink "~/.config/eww"
. This will result in the symlink chain HM produces pointing directly to the out-of-Nix-store configuration directory, instead of copying the directory into the store. Upsides: the canonical p…