fork/home-manager

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

Mmequignonpet: fix settings format issued85bf67c

master
887 B42 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  home.stateVersion = "21.11";
7  programs.pet = {
8    enable = true;
9    selectcmdPackage = config.lib.test.mkStubPackage { };
10    settings = {
11      General = {
12        backend = "Gitlab";
13        editor = "nvim";
14      };
15      Gitlab = {
16        access_token = "1234";
17        file_name = "pet-snippets.toml";
18        visibility = "public";
19      };
20    };
21  };
22
23  test.stubs.pet = { };
24
25  nmt.script = ''
26    assertFileContent home-files/.config/pet/config.toml \
27      ${
28        builtins.toFile "pet-settings.toml" ''
29          [General]
30          backend = "Gitlab"
31          editor = "nvim"
32          selectcmd = "fzf"
33          snippetfile = "/home/hm-user/.config/pet/snippet.toml"
34
35          [Gitlab]
36          access_token = "1234"
37          file_name = "pet-snippets.toml"
38          visibility = "public"
39        ''
40      }
41  '';
42}