1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01: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"}''
}
'';
};