move home manger stuff to home manager modules

This commit is contained in:
jopejoe1 2024-01-02 20:39:42 +01:00
parent 536fc32216
commit 414c9bd0eb
11 changed files with 508 additions and 541 deletions

View file

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
let cfg = config.jopejoe1.git;
in {
options.jopejoe1.git = {
enable = lib.mkEnableOption "Enable Git";
};
config = lib.mkIf cfg.enable {
programs.git = {
enable = true;
package = pkgs.git;
userEmail = "johannes@joens.email";
userName = "jopejoe1";
extraConfig = {
core = {
whitespace = [ "blank-at-eol" "blank-at-eof" "space-before-tab" ];
};
};
};
};
}