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/rothe.nix
|
||||||
./home/wayland
|
./home/wayland
|
||||||
];
|
];
|
||||||
|
extraSpecialArgs = {
|
||||||
|
mail = "mail@johannes-rothe.de";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"rothe@johannes-powermachine" = home-manager.lib.homeManagerConfiguration {
|
"rothe@johannes-powermachine" = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./home/rothe.nix
|
./home/rothe.nix
|
||||||
];
|
];
|
||||||
|
extraSpecialArgs = {
|
||||||
|
mail = "mail@johannes-rothe.de";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"rothe@pdemu1cml000301" = home-manager.lib.homeManagerConfiguration {
|
"rothe@pdemu1cml000301" = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./home/rothe.nix
|
./home/rothe.nix
|
||||||
];
|
];
|
||||||
|
extraSpecialArgs = {
|
||||||
|
mail = "rothe@magazino.eu";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, mail, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
black
|
black
|
||||||
go
|
go
|
||||||
@ -28,18 +29,17 @@
|
|||||||
exec sway
|
exec sway
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
# TODO make mails configurable
|
|
||||||
# disable greeting
|
# disable greeting
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
fish_add_path ~/bin/
|
fish_add_path ~/bin/
|
||||||
fish_add_path ~/go/bin/
|
fish_add_path ~/go/bin/
|
||||||
export DEBFULLNAME="Johannes Rothe"
|
export DEBFULLNAME="Johannes Rothe"
|
||||||
export DEBEMAIL="mail@johannes-rothe.de"
|
export DEBEMAIL="${mail}"
|
||||||
export GIT_AUTHOR_NAME="Johannes Rothe"
|
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_NAME="Johannes Rothe"
|
||||||
export GIT_COMMITTER_EMAIL="rothe@magazino.eu"
|
export GIT_COMMITTER_EMAIL="${mail}"
|
||||||
export VAULT_ADDR="https://passwords.magazino.eu:8201"
|
export VAULT_ADDR="https://passwords.magazino.eu:8201"
|
||||||
'';
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userEmail = "mail@johannes-rothe.de";
|
userEmail = "${mail}";
|
||||||
userName = "Johannes Rothe";
|
userName = "Johannes Rothe";
|
||||||
aliases = {
|
aliases = {
|
||||||
a = "add";
|
a = "add";
|
||||||
@ -219,5 +219,6 @@
|
|||||||
miniflux-passwordfile ~/.minifluxpw\n
|
miniflux-passwordfile ~/.minifluxpw\n
|
||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user