mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 13:03:28 -05:00
28 lines
No EOL
631 B
Nix
28 lines
No EOL
631 B
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
home-packages = config.home-manager.users.${config.user}.home.packages;
|
|
in
|
|
{
|
|
options = {
|
|
gitName = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "Name to use for git commits";
|
|
};
|
|
gitEmail = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = "Email to use for git commits";
|
|
};
|
|
};
|
|
config = {
|
|
home-manager.users.root.programs.git = {
|
|
enable = true;
|
|
};
|
|
home-manager.users.${config.user} = {
|
|
programs.git = {
|
|
enable = true;
|
|
userName = config.gitName;
|
|
userEmail = config.gitEmail;
|
|
};
|
|
};
|
|
};
|
|
} |