Base of Nix Configuration

This commit is contained in:
2026-01-24 15:52:13 +01:00
commit 02082e2dd8
45 changed files with 3059 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
{ lib, config, ... }:
with lib;
let
cfg = config.within.shell.git;
in
{
options.within.shell.git = {
enable = mkEnableOption "System git service";
};
config = mkIf cfg.enable {
programs.git = {
enable = true;
config = {
init.defaultBranch = "main";
user = {
name = "Laurent Gueret";
email = "gueretlob@icloud.com";
};
};
};
programs.ssh.enableAskPassword = false;
};
}