micro: add module

This adds initial bare-bones support for the `micro` editor.
This commit is contained in:
Michael Forster 2022-05-29 18:53:49 +02:00 committed by Robert Helgesson
parent fd047c84f7
commit 65bcfaccc5
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
8 changed files with 86 additions and 0 deletions

View file

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

View file

@ -0,0 +1,24 @@
{ ... }:
{
programs.micro = {
enable = true;
settings = {
autosu = false;
cursorline = false;
};
};
test.stubs.micro = { };
nmt.script = ''
assertFileContent home-files/.config/micro/settings.json \
${builtins.toFile "micro-expected-settings.json" ''
{
"autosu": false,
"cursorline": false
}
''}
'';
}