-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
k9s: configuration files in Darwin without XDG
Support alternate configuration files for k9s in darwin where XDG is not mandated and k9s expects configuration files in `~/Library/Application Support/k9s/`.
- Loading branch information
Showing
3 changed files
with
85 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
{ ... }: | ||
{ pkgs, lib, ... }: { | ||
|
||
{ | ||
programs.k9s.enable = true; | ||
|
||
xdg.enable = lib.mkIf pkgs.stdenv.isDarwin (lib.mkForce false); | ||
|
||
test.stubs.k9s = { }; | ||
|
||
nmt.script = '' | ||
assertPathNotExists home-files/.config/k9s | ||
nmt.script = let | ||
configDir = if !pkgs.stdenv.isDarwin then | ||
".config/k9s" | ||
else | ||
"Library/Application Support/k9s"; | ||
in '' | ||
assertPathNotExists home-files/${configDir} | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters