mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
User settings restructured
This commit is contained in:
parent
fce12d274c
commit
2881653ec5
6 changed files with 51 additions and 52 deletions
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
with lib;
|
||||
let cfg = config.modules.git;
|
||||
isBryan = config.user.name == "bryan";
|
||||
|
||||
in
|
||||
{ options.modules.git = { enable = mkEnableOption "git"; };
|
||||
|
|
@ -10,7 +9,7 @@ in
|
|||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
} // (lib.optionalAttrs isBryan (import ./config/git.nix));
|
||||
} // config.user.gitConfig;
|
||||
gh = {
|
||||
enable = true;
|
||||
settings.git_protocol = "ssh";
|
||||
|
|
@ -19,6 +18,6 @@ in
|
|||
|
||||
home.packages = with pkgs; [
|
||||
git-crypt
|
||||
] ++ optional isBryan lazygit;
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue