fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Otavio Salvadorprograms.rio: add module (#4118)f092a922

master
623 B32 linesraw
1{ config, pkgs, ... }:
2
3let
4  inherit (pkgs.stdenv.hostPlatform) isDarwin;
5
6  path = if isDarwin then
7    "Library/Application Support/rio/config.toml"
8  else
9    ".config/rio/config.toml";
10
11  expected = pkgs.writeText "rio-expected.toml" ''
12    cursor = "_"
13    padding-x = 0
14    performance = "Low"
15  '';
16in {
17  programs.rio = {
18    enable = true;
19    package = config.lib.test.mkStubPackage { };
20
21    settings = {
22      cursor = "_";
23      performance = "Low";
24      padding-x = 0;
25    };
26  };
27
28  nmt.script = ''
29    assertFileExists home-files/"${path}"
30    assertFileContent home-files/"${path}" '${expected}'
31  '';
32}