micro: add module
This adds initial bare-bones support for the `micro` editor.
This commit is contained in:
parent
fd047c84f7
commit
65bcfaccc5
8 changed files with 86 additions and 0 deletions
1
tests/modules/programs/micro/default.nix
Normal file
1
tests/modules/programs/micro/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ micro = ./micro.nix; }
|
||||
24
tests/modules/programs/micro/micro.nix
Normal file
24
tests/modules/programs/micro/micro.nix
Normal 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
|
||||
}
|
||||
''}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue