- system: Module describes core Linux system configuration parameters, and NixOS system parameters. - networking: Basic networking config for metal hosts. - sops: Configures sops-nix to decrypt secrets as appropriate, and provides a useful shell helper. - smb: Reusable module that returns one smb mount. - iscsi: Autoconnect and auto-mount iscsi target. - git: Basic Git config. - docker: Configure Docker. - hardware: Set of modules for physical hardware devices and their related configurations.
17 lines
478 B
Nix
17 lines
478 B
Nix
{ git, ... }: {
|
|
home-manager.users.${git.username}.programs.git = {
|
|
enable = true;
|
|
userName = "${git.realname}";
|
|
userEmail = "${git.email}";
|
|
extraConfig = {
|
|
init.defaultBranch = "main";
|
|
core.sshCommand = "ssh -i $HOME/${git.sshPrivateKey}";
|
|
gpg.format = "openpgp";
|
|
commit.gpgsign = true;
|
|
tag.gpgsign = true;
|
|
user.signingKey = "${git.signingKey}";
|
|
};
|
|
delta.enable = true;
|
|
delta.options.side-by-side = true;
|
|
};
|
|
} |