fork/home-manager

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

Nicolas Berbichegh: use structural settings (#2339)82c92a18

master
514 B25 linesraw
1{ config, lib, pkgs, ... }:
2
3{
4  config = {
5    programs.gh = {
6      enable = true;
7      settings.aliases = { co = "pr checkout"; };
8      settings.editor = "vim";
9    };
10
11    test.stubs.gh = { };
12
13    nmt.script = ''
14      assertFileExists home-files/.config/gh/config.yml
15      assertFileContent home-files/.config/gh/config.yml ${
16        builtins.toFile "config-file.yml" ''
17          aliases:
18            co: pr checkout
19          editor: vim
20          git_protocol: https
21        ''
22      }
23    '';
24  };
25}