formiko: add module

This commit is contained in:
Aguirre Matteo 2025-09-17 21:13:12 -03:00 committed by Austin Horstman
parent 9f408dc51c
commit 9093a3f200
4 changed files with 93 additions and 0 deletions

View file

@ -0,0 +1,5 @@
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
formiko-example-config = ./example-config.nix;
}

View file

@ -0,0 +1,25 @@
{
programs.formiko = {
enable = true;
settings = {
main = {
preview = 0;
parser = "json";
auto_scroll = true;
writer = "tiny";
};
editor = {
period_save = true;
check_spelling = false;
auto_indent = false;
};
};
};
nmt.script = ''
assertFileExists home-files/.config/formiko.ini
assertFileContent home-files/.config/formiko.ini \
${./formiko.ini}
'';
}

View file

@ -0,0 +1,10 @@
[editor]
auto_indent=false
check_spelling=false
period_save=true
[main]
auto_scroll=true
parser=json
preview=0
writer=tiny