mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 13:29:22 +02:00
move home manger stuff to home manager modules
This commit is contained in:
parent
536fc32216
commit
414c9bd0eb
11 changed files with 508 additions and 541 deletions
24
home-modules/git/default.nix
Normal file
24
home-modules/git/default.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue