mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
This fixes the path of the wallust config file to be under Library/Application Support/wallust when on Darwin, instead of assuming it always falls under the XDG_CONFIG_HOME (for whatever reason the owner of the Rust dirs package refuses to allow XDG on macOS, since it's non-standard)
29 lines
553 B
Nix
29 lines
553 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
home.enableNixpkgsReleaseCheck = false;
|
|
programs.wallust = {
|
|
enable = true;
|
|
backend = "full";
|
|
settings = {
|
|
backend = "fastresize";
|
|
color_space = "lchmixed";
|
|
};
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
path =
|
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
|
"home-files/Library/Application Support/wallust/wallust.toml"
|
|
else
|
|
"home-files/.config/wallust/wallust.toml";
|
|
in
|
|
''
|
|
assertFileExists '${path}'
|
|
assertFileContent '${path}' ${./expected.toml}
|
|
'';
|
|
}
|