Make mail configurable
Inspired by: https://librephoenix.com/2024-01-28-program-a-modular-control-center-for-your-config-using-special-args-in-nixos-flakes.html
This commit is contained in:
parent
f639fb31b9
commit
875c360794
@ -29,18 +29,27 @@
|
||||
./home/rothe.nix
|
||||
./home/wayland
|
||||
];
|
||||
extraSpecialArgs = {
|
||||
mail = "mail@johannes-rothe.de";
|
||||
};
|
||||
};
|
||||
"rothe@johannes-powermachine" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./home/rothe.nix
|
||||
];
|
||||
extraSpecialArgs = {
|
||||
mail = "mail@johannes-rothe.de";
|
||||
};
|
||||
};
|
||||
"rothe@pdemu1cml000301" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./home/rothe.nix
|
||||
];
|
||||
extraSpecialArgs = {
|
||||
mail = "rothe@magazino.eu";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -1,6 +1,7 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, mail, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
home.packages = with pkgs; [
|
||||
black
|
||||
go
|
||||
@ -28,18 +29,17 @@
|
||||
exec sway
|
||||
end
|
||||
'';
|
||||
# TODO make mails configurable
|
||||
# disable greeting
|
||||
shellInit = ''
|
||||
set fish_greeting
|
||||
fish_add_path ~/bin/
|
||||
fish_add_path ~/go/bin/
|
||||
export DEBFULLNAME="Johannes Rothe"
|
||||
export DEBEMAIL="mail@johannes-rothe.de"
|
||||
export DEBEMAIL="${mail}"
|
||||
export GIT_AUTHOR_NAME="Johannes Rothe"
|
||||
export GIT_AUTHOR_EMAIL="rothe@magazino.eu"
|
||||
export GIT_AUTHOR_EMAIL="${mail}"
|
||||
export GIT_COMMITTER_NAME="Johannes Rothe"
|
||||
export GIT_COMMITTER_EMAIL="rothe@magazino.eu"
|
||||
export GIT_COMMITTER_EMAIL="${mail}"
|
||||
export VAULT_ADDR="https://passwords.magazino.eu:8201"
|
||||
'';
|
||||
shellAliases = {
|
||||
@ -53,7 +53,7 @@
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "mail@johannes-rothe.de";
|
||||
userEmail = "${mail}";
|
||||
userName = "Johannes Rothe";
|
||||
aliases = {
|
||||
a = "add";
|
||||
@ -219,5 +219,6 @@
|
||||
miniflux-passwordfile ~/.minifluxpw\n
|
||||
";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user