mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-07 02:06:34 +05:30
refactor: move email to global variable
This commit is contained in:
@ -1,9 +1,13 @@
|
||||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
email,
|
||||
...
|
||||
}: {
|
||||
programs.rbw = {
|
||||
enable = true;
|
||||
settings = {
|
||||
base_url = "https://bw.tux.rs";
|
||||
email = "0xtux@pm.me";
|
||||
email = "${email}";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
{...}: {
|
||||
{email, ...}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "tuxdotrs";
|
||||
userEmail = "t@tux.rs";
|
||||
userEmail = "${email}";
|
||||
signing = {
|
||||
key = "~/.ssh/id_ed25519.pub";
|
||||
signByDefault = true;
|
||||
|
@ -2,11 +2,12 @@
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
email,
|
||||
...
|
||||
}: {
|
||||
security = {
|
||||
acme = {
|
||||
defaults.email = "0xtux@pm.me";
|
||||
defaults.email = "${email}";
|
||||
acceptTerms = true;
|
||||
};
|
||||
};
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
username,
|
||||
email,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
@ -10,7 +11,7 @@
|
||||
server.http_port = 8888;
|
||||
security = {
|
||||
admin_user = "${username}";
|
||||
admin_email = "0xtux@pm.me";
|
||||
admin_email = "${email}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
email,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
@ -16,8 +17,8 @@
|
||||
|
||||
adminUser = {
|
||||
activate = true;
|
||||
email = "${email}";
|
||||
name = "tux";
|
||||
email = "0xtux@pm.me";
|
||||
passwordFile = config.sops.secrets.plausible_password.path;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user