mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 22:45:37 +00:00
modify git config for work
This commit is contained in:
parent
8fe3cffc9f
commit
2986ad06f5
@ -39,9 +39,10 @@
|
|||||||
let
|
let
|
||||||
|
|
||||||
# Global configuration for my systems
|
# Global configuration for my systems
|
||||||
globals = {
|
globals = rec {
|
||||||
user = "noah";
|
user = "noah";
|
||||||
fullName = "Noah Masur";
|
fullName = "Noah Masur";
|
||||||
|
gitName = fullName;
|
||||||
gitEmail = "7386960+nmasur@users.noreply.github.com";
|
gitEmail = "7386960+nmasur@users.noreply.github.com";
|
||||||
mailServer = "noahmasur.com";
|
mailServer = "noahmasur.com";
|
||||||
dotfilesRepo = "https://github.com/nmasur/dotfiles";
|
dotfilesRepo = "https://github.com/nmasur/dotfiles";
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
type = types.str;
|
type = types.str;
|
||||||
description = "Primary user of the system";
|
description = "Primary user of the system";
|
||||||
};
|
};
|
||||||
|
fullName = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "Human readable name of the user";
|
||||||
|
};
|
||||||
userDirs = {
|
userDirs = {
|
||||||
# Required to prevent infinite recursion when referenced by himalaya
|
# Required to prevent infinite recursion when referenced by himalaya
|
||||||
download = lib.mkOption {
|
download = lib.mkOption {
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
{ nixpkgs, darwin, home-manager, nur, globals, ... }:
|
{ nixpkgs, darwin, home-manager, nur, globals, ... }:
|
||||||
|
|
||||||
# System configuration for my MacBook
|
# System configuration for my work MacBook
|
||||||
darwin.lib.darwinSystem {
|
darwin.lib.darwinSystem {
|
||||||
system = "x86_64-darwin";
|
system = "x86_64-darwin";
|
||||||
specialArgs = { };
|
specialArgs = { };
|
||||||
modules = [
|
modules = [
|
||||||
(globals // { user = "Noah.Masur"; })
|
(globals // {
|
||||||
|
user = "Noah.Masur";
|
||||||
|
gitName = "Noah-Masur_1701";
|
||||||
|
gitEmail = "Noah.Masur@take2games.com";
|
||||||
|
})
|
||||||
home-manager.darwinModules.home-manager
|
home-manager.darwinModules.home-manager
|
||||||
{
|
{
|
||||||
gui.enable = true;
|
gui.enable = true;
|
||||||
|
@ -5,9 +5,9 @@ let home-packages = config.home-manager.users.${config.user}.home.packages;
|
|||||||
in {
|
in {
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
fullName = lib.mkOption {
|
gitName = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Human readable name of the user";
|
description = "Name to use for git commits";
|
||||||
};
|
};
|
||||||
gitEmail = lib.mkOption {
|
gitEmail = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
@ -25,7 +25,7 @@ in {
|
|||||||
home-manager.users.${config.user} = {
|
home-manager.users.${config.user} = {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = config.fullName;
|
userName = config.gitName;
|
||||||
userEmail = config.gitEmail;
|
userEmail = config.gitEmail;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
pager = { branch = "false"; };
|
pager = { branch = "false"; };
|
||||||
|
Loading…
Reference in New Issue
Block a user