1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

andcli: add module

This commit is contained in:
Aguirre Matteo 2025-10-09 16:34:50 -03:00 committed by Austin Horstman
parent 2fffa806e7
commit efb5aa7779
4 changed files with 89 additions and 0 deletions

View file

@ -0,0 +1,3 @@
options:
show_tokens: true
show_usernames: false

View file

@ -0,0 +1 @@
{ andcli-settings = ./settings.nix; }

View file

@ -0,0 +1,32 @@
{
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}
'';
}