c6444ecc3c
GitOrigin-RevId: 51e44a13acea71b36245e8bd8c7db53e0a3e61ee
32 lines
623 B
Nix
32 lines
623 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
|
|
|
path = if isDarwin then
|
|
"Library/Application Support/rio/config.toml"
|
|
else
|
|
".config/rio/config.toml";
|
|
|
|
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 = ''
|
|
assertFileExists home-files/"${path}"
|
|
assertFileContent home-files/"${path}" '${expected}'
|
|
'';
|
|
}
|