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

amber: add module

This commit is contained in:
Aguirre Matteo 2025-10-05 15:18:21 -03:00 committed by Austin Horstman
parent 5f06ceafc6
commit 2b64e332a0
5 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,4 @@
interactive = false
regex = true
row = true
statistics = true

View file

@ -0,0 +1,4 @@
binary = true
column = true
recursive = false
skipped = true

View file

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

View file

@ -0,0 +1,37 @@
{ pkgs, ... }:
{
programs.amber = {
enable = true;
ambsSettings = {
column = true;
binary = true;
skipped = true;
recursive = false;
};
ambrSettings = {
regex = true;
row = true;
statistics = true;
interactive = false;
};
};
nmt.script =
let
configDir =
if pkgs.stdenv.hostPlatform.isDarwin then
"Library/Preferences/com.github.dalance.amber"
else
".config/amber";
in
''
assertFileExists "home-files/${configDir}/ambs.toml"
assertFileContent "home-files/${configDir}/ambs.toml" \
${./ambs.toml}
assertFileExists "home-files/${configDir}/ambr.toml"
assertFileContent "home-files/${configDir}/ambr.toml" \
${./ambr.toml}
'';
}