Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(home-manager/k9s): support darwin without XDG #311

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

alejandro-angulo
Copy link
Contributor

k9s expects configuration files on OS X to live in ~/Library/Application Support/k9s instead of ~/.config.k9s. This commit handles the case where the module is built for a darwin system with xdg disabled.

See: #310

@alejandro-angulo
Copy link
Contributor Author

I ran into a similar issue with lazygit (see #312 ). Would it be easier to maintain this flake if there were an assertion ensuring XDG is enabled rather than sprinkling in darwin checks?

@m-wynn
Copy link

m-wynn commented Aug 13, 2024

This worked for me as expected on Darwin both with and without xdg.

k9s expects configuration files on OS X to live in
`~/Library/Application Support/k9s` instead of `~/.config.k9s`. This
commit handles the case where the module is built for a darwin system
with xdg disabled.
@alejandro-angulo alejandro-angulo changed the title fix: k9s on darwin with xdg disabled fix(home-manager/k9s): k9s on darwin with xdg disabled Aug 14, 2024
Copy link
Member

@getchoo getchoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be better to follow the upstream module's example here

This should also be formatted with nixfmt-rfc-style

modules/home-manager/k9s.nix Outdated Show resolved Hide resolved
modules/home-manager/k9s.nix Show resolved Hide resolved
modules/home-manager/k9s.nix Outdated Show resolved Hide resolved
modules/home-manager/k9s.nix Outdated Show resolved Hide resolved
- More closely matches the upstream module in home-manager
- Formatted with nixfmt-rfc-style
@getchoo getchoo linked an issue Aug 20, 2024 that may be closed by this pull request
modules/home-manager/k9s.nix Outdated Show resolved Hide resolved
modules/home-manager/k9s.nix Outdated Show resolved Hide resolved
Copy link
Member

@getchoo getchoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@getchoo getchoo changed the title fix(home-manager/k9s): k9s on darwin with xdg disabled fix(home-manager/k9s): support darwin without XDG Aug 23, 2024
@getchoo getchoo merged commit 0047cf5 into catppuccin:main Aug 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Path of k9s skin is broken on Darwin when XDG_CONFIG_HOME is unset
3 participants