imv: add module (#4032)

* imv: add module

Signed-off-by: Christoph Heiss <christoph@c8h4.io>

* imv: add test cases

Signed-off-by: Christoph Heiss <christoph@c8h4.io>

---------

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
Co-authored-by: Naïm Favier <n@monade.li>
This commit is contained in:
Christoph Heiss 2023-06-07 14:51:05 +02:00 committed by GitHub
parent 3512a6dafb
commit 39c7d0a97a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 102 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# Generated by Home Manager.
[aliases]
x=close
[options]
background=ffffff

View file

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
config = {
programs.imv = {
enable = true;
package = pkgs.writeScriptBin "dummy-imv" "";
settings = {
options.background = "ffffff";
aliases.x = "close";
};
};
nmt.script = ''
assertFileExists home-files/.config/imv/config
assertFileContent home-files/.config/imv/config \
${./basic-configuration.conf}
'';
};
}

View file

@ -0,0 +1,4 @@
{
imv-basic-configuration = ./basic-configuration.nix;
imv-empty-configuration = ./empty-configuration.nix;
}

View file

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
config = {
programs.imv = {
enable = true;
package = pkgs.writeScriptBin "dummy-imv" "";
};
nmt.script = ''
assertPathNotExists home-files/.config/imv/config
'';
};
}