diff options
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | modules/home/common.nix | 21 |
2 files changed, 17 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix index 4140dc6..5a3525d 100644 --- a/flake.nix +++ b/flake.nix @@ -111,6 +111,6 @@ # compatibility wrapper for nixos-option legacyPackages = lib.genAttrs (lib.attrValues systems) - (system: with packageSetsForSystem system; pkgs.recurseIntoAttrs pkgs); + (system: with packageSetsForSystem system; lib.recurseIntoAttrs pkgs); }; } diff --git a/modules/home/common.nix b/modules/home/common.nix index 4eb0d56..cc9c68f 100644 --- a/modules/home/common.nix +++ b/modules/home/common.nix @@ -8,20 +8,31 @@ in programs = { git = { enable = true; - userName = "Mel"; - userEmail = "mel@rnrd.eu"; signing = { key = "D75A C286 ACA7 00B4 D8EC 377D 2082 F8EC 11CC 009B"; signByDefault = true; }; ignores = [ - # ignore most vim swapfiles - "*~" "[._]*.sw?" + # ignore most vim swap-files + "*~" + "[._]*.sw?" ]; - extraConfig = { + + settings = { + user = { + name = "Mel"; + email = "mel@rnrd.eu"; + }; + + alias = { + "skip" = "update-index --skip-worktree"; + "unskip" = "update-index --no-skip-worktree"; + }; + init.defaultBranch = "main"; pull.rebase = true; }; + }; tmux = { |
