1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/andcli/settings.nix
2025-10-11 22:12:09 -05:00

32 lines
613 B
Nix

{
lib,
pkgs,
config,
...
}:
{
programs.andcli = {
enable = true;
settings = {
options = {
show_usernames = false;
show_tokens = true;
};
};
};
nmt.script =
let
configPath =
if pkgs.stdenv.hostPlatform.isDarwin then
"Library/Application Support/andcli"
else
"${lib.removePrefix config.home.homeDirectory config.xdg.configHome}/andcli";
in
''
assertFileExists "home-files/${configPath}/config.yaml"
assertFileContent "home-files/${configPath}/config.yaml" \
${./config.yaml}
'';
}