Kieran's opinionated (and probably slightly dumb) nix config

feat: add cedarville config

dunkirk.sh ddc13c8f fa28055c

verified
Changed files
+19 -1
modules
home
apps
+19 -1
modules/home/apps/git.nix
···
-
{ lib, config, ... }:
+
{
+
lib,
+
config,
+
pkgs,
+
...
+
}:
{
options.atelier.shell.git.enable = lib.mkEnableOption {
description = "Enable global Git configuration";
···
ch = "checkout";
pushfwl = "push --force-with-lease --force-if-includes";
};
+
includes = [
+
{
+
path = pkgs.writeText "git-user-config" ''
+
[user]
+
name = Kieran Klukas
+
email = kieranklukas@cedarville.edu
+
signingKey = ~/.ssh/id_ed25519_cedarville.pub
+
[core]
+
sshCommand "ssh -i ~/.ssh/id_ed25519_cedarville"
+
'';
+
condition = "gitdir:~/code/school";
+
}
+
];
extraConfig = {
branch.sort = "-committerdate";
pager.branch = false;