wip(home): refactor home modules *WILL NOT BUILD*
This commit is contained in:
parent
2033810429
commit
6a591ecbf7
115 changed files with 1028 additions and 791 deletions
26
home/modules/console/tools/git.nix
Normal file
26
home/modules/console/tools/git.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, config, lib, osConfig, ... }:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
cfg = config.ooknet.tools.git;
|
||||
admin = osConfig.ooknet.host.admin;
|
||||
in
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
userName = admin.gitName;
|
||||
userEmail = admin.gitEmail;
|
||||
extraConfig = {
|
||||
gpg."ssh".program = "${pkgs._1password-gui}/bin/op-ssh-sign";
|
||||
};
|
||||
ignores = [ ".direnv" "result" ];
|
||||
lfs.enable = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
lazygit
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue