mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
pistol: change config path for macOS
This commit is contained in:
parent
b5cb3a5daa
commit
e0154ae416
2 changed files with 2 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf (cfg.associations != [ ] && pkgs.stdenv.hostPlatform.isDarwin) {
|
(mkIf (cfg.associations != [ ] && pkgs.stdenv.hostPlatform.isDarwin) {
|
||||||
home.file."Library/Application Support/pistol/pistol.conf".text = configFile;
|
home.file."Library/Preferences/pistol/pistol.conf".text = configFile;
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf (cfg.associations != [ ] && !pkgs.stdenv.hostPlatform.isDarwin) {
|
(mkIf (cfg.associations != [ ] && !pkgs.stdenv.hostPlatform.isDarwin) {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
fpath .*.md$ sh: bat --paging=never --color=always %pistol-filename% | head -8'';
|
fpath .*.md$ sh: bat --paging=never --color=always %pistol-filename% | head -8'';
|
||||||
path =
|
path =
|
||||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||||
"home-files/Library/Application Support/pistol/pistol.conf"
|
"home-files/Library/Preferences/pistol/pistol.conf"
|
||||||
else
|
else
|
||||||
"home-files/.config/pistol/pistol.conf";
|
"home-files/.config/pistol/pistol.conf";
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue