From bb6e8105843912ae8cb521156f3aaa0d22380a41 Mon Sep 17 00:00:00 2001 From: Satria Date: Sat, 14 Mar 2026 08:17:08 +0700 Subject: [PATCH 1/2] add shell alias --- lib/options.nix | 2 ++ modules/home/core/zsh.nix | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/options.nix b/lib/options.nix index b865080..c25e663 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -62,6 +62,8 @@ }; git = { # setup your git author + username = "satr14"; # forgejo username + server = "https://git.satr14.my.id"; # forgejo server url user = "Satria"; email = "admin@satr14.my.id"; }; diff --git a/modules/home/core/zsh.nix b/modules/home/core/zsh.nix index ca4bd4f..8ce99d3 100644 --- a/modules/home/core/zsh.nix +++ b/modules/home/core/zsh.nix @@ -1,4 +1,4 @@ -{ hostname, flake-path, zsh-theme, ... }: { +{ git, hostname, flake-path, zsh-theme, ... }: { programs = { pay-respects = { enable = true; @@ -64,6 +64,7 @@ "wm-disp" = "wm-ctl dispatch dpms"; "gh-author-setup" = "git config user.name $(gh api -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /user | jq -r .login) && git config user.email $(gh api -H \"Accept: application/vnd.github+json\" -H \"X-GitHub-Api-Version: 2022-11-28\" /user/emails | jq -r \".[1].email\")"; + "fg-create-repo" = "git remote add origin ${git.server}/${git.username}/$(basename $PWDw).git && git push"; "convert-pdf" = "libreoffice --headless --convert-to pdf"; "mcl" = "portablemc start -l $(cat ~/.minecraft/portablemc-launch-params.json | jq -r .email) $(cat ~/.minecraft/portablemc-launch-params.json | jq -r .version)"; From 20608300ae47e0267ac424bd736d4c71de0a4497 Mon Sep 17 00:00:00 2001 From: Satria Date: Sat, 14 Mar 2026 08:17:25 +0700 Subject: [PATCH 2/2] env file change --- modules/system/homelab/proxy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/homelab/proxy.nix b/modules/system/homelab/proxy.nix index de27f58..3edaf2a 100644 --- a/modules/system/homelab/proxy.nix +++ b/modules/system/homelab/proxy.nix @@ -47,7 +47,7 @@ in { domain = "*.${base}"; extraDomainNames = [ base ]; dnsProvider = "cloudflare"; - environmentFile = "/var/lib/acme/cloudflare.env"; + environmentFile = "/mnt/data/acme/.env"; # ^^^contents: CLOUDFLARE_DNS_API_TOKEN=XXXXX }; };