configurable git email and name
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
|
|
||||||
users.avravels = import home/home-work.nix;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{ pkgs, ... } :
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
settings.user = {
|
|
||||||
name = "Armel van Ravels";
|
|
||||||
email = "armel@webavance.nl";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,27 @@
|
|||||||
{ pkgs, ... } :
|
{ lib, pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.git = {
|
options.home.git = {
|
||||||
enable = true;
|
userName = lib.mkOption {
|
||||||
settings.user = {
|
type = lib.types.str;
|
||||||
name = "Armel van Ravels";
|
default = "Armel van Ravels";
|
||||||
email = "armel@armel.nl";
|
description = "Default git user.name for this user";
|
||||||
|
};
|
||||||
|
|
||||||
|
userEmail = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "armel@armel.nl";
|
||||||
|
description = "Default git user.email for this user";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
settings.user = {
|
||||||
|
name = config.home.git.userName;
|
||||||
|
email = config.home.git.userEmail;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,13 @@
|
|||||||
ms-dotnettools.csdevkit
|
ms-dotnettools.csdevkit
|
||||||
ms-dotnettools.vscode-dotnet-runtime
|
ms-dotnettools.vscode-dotnet-runtime
|
||||||
mkhl.direnv # Direnv integration for VSCode
|
mkhl.direnv # Direnv integration for VSCode
|
||||||
|
catppuccin.catppuccin-vsc
|
||||||
|
vscodevim.vim
|
||||||
];
|
];
|
||||||
|
|
||||||
profiles.default.userSettings = {
|
profiles.default.userSettings = {
|
||||||
|
"editor.lineNumbers" = "relative";
|
||||||
|
"workbench.colorTheme" = "Catppuccin Mocha";
|
||||||
"direnv.restart.automatic" = true;
|
"direnv.restart.automatic" = true;
|
||||||
"terminal.integrated.defaultProfile.linux" = "zsh";
|
"terminal.integrated.defaultProfile.linux" = "zsh";
|
||||||
"terminal.integrated.profiles.linux" = {
|
"terminal.integrated.profiles.linux" = {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../modules/home-manager-work.nix
|
../modules/home-manager.nix
|
||||||
../modules/common.nix
|
../modules/common.nix
|
||||||
../modules/users.nix
|
../modules/users.nix
|
||||||
../modules/locales.nix
|
../modules/locales.nix
|
||||||
@@ -31,6 +31,10 @@
|
|||||||
|
|
||||||
networking.hostName = "laptop-armel";
|
networking.hostName = "laptop-armel";
|
||||||
|
|
||||||
|
# Per-machine Home Manager overrides (use the `home.git` options exposed by
|
||||||
|
# `systems/modules/home/programs/git.nix`). This sets the work identity.
|
||||||
|
home-manager.users.avravels.home.git.userName = "Armel van Ravels";
|
||||||
|
home-manager.users.avravels.home.git.userEmail = "armel@webavance.nl";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.nameservers = [ "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
|
networking.nameservers = [ "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user