mirror of
https://github.com/nix-community/home-manager
synced 2024-11-09 04:39:44 +01:00
9a3a5b4402
`rio` now uses the same config location for both Linux and macOS: > MacOS and Linux configuration file path is `~/.config/rio/config.toml`. Ref: https://raphamorim.io/rio/docs/configuration-file
25 lines
488 B
Nix
25 lines
488 B
Nix
{ 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 = ''
|
|
assertFileExists home-files/.config/rio/config.toml
|
|
assertFileContent home-files/.config/rio/config.toml '${expected}'
|
|
'';
|
|
}
|