2023-09-18 22:42:22 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
expected = pkgs.writeText "rio-expected.toml" ''
|
|
|
|
cursor = "_"
|
|
|
|
padding-x = 0
|
|
|
|
performance = "Low"
|
|
|
|
'';
|
|
|
|
in {
|
|
|
|
programs.rio = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { };
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
cursor = "_";
|
|
|
|
performance = "Low";
|
|
|
|
padding-x = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2024-03-08 14:18:28 +01:00
|
|
|
assertFileExists home-files/.config/rio/config.toml
|
|
|
|
assertFileContent home-files/.config/rio/config.toml '${expected}'
|
2023-09-18 22:42:22 +02:00
|
|
|
'';
|
|
|
|
}
|