mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
zellij: add configuration for darwin
Zellij uses a different path to hold its configuration on Darwin.
This commit is contained in:
parent
8db712a6a2
commit
9580f6c42a
1 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,11 @@ let
|
|||
cfg = config.programs.zellij;
|
||||
yamlFormat = pkgs.formats.yaml { };
|
||||
|
||||
configDir = if pkgs.stdenv.isDarwin then
|
||||
"Library/Application Support/org.Zellij-Contributors.Zellij"
|
||||
else
|
||||
"${config.xdg.configHome}/zellij";
|
||||
|
||||
in {
|
||||
meta.maintainers = [ hm.maintainers.mainrs ];
|
||||
|
||||
|
@ -44,7 +49,7 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
xdg.configFile."zellij/config.yaml" = mkIf (cfg.settings != { }) {
|
||||
home.file."${configDir}/config.yaml" = mkIf (cfg.settings != { }) {
|
||||
source = yamlFormat.generate "zellij.yaml" cfg.settings;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue