mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
gh: fix protocol setting (#1831)
* gh: fix protocol setting * gh: fix test
This commit is contained in:
parent
fb9bf032fb
commit
3327cbe1f9
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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"}''
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue