1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-05 14:33:34 +02:00

gh: fix protocol setting (#1831)

* gh: fix protocol setting

* gh: fix test
This commit is contained in:
Phillip Cloud 2021-02-27 15:42:56 -05:00 committed by GitHub
parent fb9bf032fb
commit 3327cbe1f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -47,7 +47,9 @@ in {
config = mkIf cfg.enable {
home.packages = [ pkgs.gh ];
xdg.configFile."gh/config.yml".text =
builtins.toJSON { inherit (cfg) aliases editor gitProtocol; };
xdg.configFile."gh/config.yml".text = builtins.toJSON {
inherit (cfg) aliases editor;
git_protocol = cfg.gitProtocol;
};
};
}

View File

@ -15,7 +15,7 @@
assertFileExists home-files/.config/gh/config.yml
assertFileContent home-files/.config/gh/config.yml ${
builtins.toFile "config-file.yml" ''
{"aliases":{"co":"pr checkout"},"editor":"vim","gitProtocol":"https"}''
{"aliases":{"co":"pr checkout"},"editor":"vim","git_protocol":"https"}''
}
'';
};