1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-02-17 05:35:06 +01:00
home-manager/tests/modules/programs/rio/example-settings.nix

26 lines
483 B
Nix
Raw Permalink Normal View History

{ config, ... }:
let
expected = builtins.toFile "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/.config/rio/config.toml
assertFileContent home-files/.config/rio/config.toml '${expected}'
'';
}