mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
32 lines
613 B
Nix
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}
|
|
'';
|
|
}
|