From 5f1ac39a0e49d9f6869b0c36727121e683a5d9ab Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Wed, 28 Jun 2023 19:46:20 -0400 Subject: [PATCH] Add the seal post script into nix file itself. Some comments on how to use Gitea. Switching mentions of users to alice --- nixos-apps/cutesealfanpage.love.nix | 8 ++++++++ nixos-apps/git.ewanick.com.nix | 14 ++++++++++++++ server-config/configuration.nix | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/nixos-apps/cutesealfanpage.love.nix b/nixos-apps/cutesealfanpage.love.nix index ce8ce77..6ff1906 100644 --- a/nixos-apps/cutesealfanpage.love.nix +++ b/nixos-apps/cutesealfanpage.love.nix @@ -2,6 +2,14 @@ let PROJECT_ROOT = builtins.toString ./.; in { + nixpkgs.overlays = [ + (self: super: { + newSealPost = pkgs.writeShellScriptBin "newSealPost.sh" (builtins.readFile ./cutesealfanpage.love/newSealPost.sh); + }) + ]; + + environment.systemPackages = [ pkgs.newSealPost ]; + services.caddy = { enable = true; virtualHosts = { diff --git a/nixos-apps/git.ewanick.com.nix b/nixos-apps/git.ewanick.com.nix index a010757..277a4ec 100644 --- a/nixos-apps/git.ewanick.com.nix +++ b/nixos-apps/git.ewanick.com.nix @@ -25,3 +25,17 @@ }; }; } + + +/* + # README + + ## View users and use the command line + + Do something like this, preferably as the gitea user + + ```bash + $ sudo su gitea + $ /nix/store/5xwh7m7252m9ljvr3lyilcza1q699r2c-gitea-1.17.4/bin/gitea -c /var/lib/gitea/custom/conf/app.ini admin user list + ``` +*/ diff --git a/server-config/configuration.nix b/server-config/configuration.nix index b52acc3..dcec498 100644 --- a/server-config/configuration.nix +++ b/server-config/configuration.nix @@ -52,7 +52,7 @@ auto-optimise-store = true; # Required by Cachix to be used as non-root user - trusted-users = [ "root" "bill" ]; + trusted-users = [ "root" "alice" ]; }; };