From 365f87eb04015f04e17e7830622806760a3d8eb2 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 29 Jan 2024 09:57:03 -0600 Subject: [PATCH] don't use a `let ... in` construct --- hosts/algiz/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/hosts/algiz/default.nix b/hosts/algiz/default.nix index 6fd2d8d..2274236 100644 --- a/hosts/algiz/default.nix +++ b/hosts/algiz/default.nix @@ -2,12 +2,7 @@ inputs, pkgs, ... -}: let - gitea-shim = pkgs.writeShellScriptBin "gitea" '' - ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@" - ''; - -in { +}:{ imports = with inputs.self.nixosModules; [ docker ]; @@ -21,7 +16,9 @@ in { environment.systemPackages = with pkgs; [ rclone - gitea-shim + (pkgs.writeShellScriptBin "gitea" '' + ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@" + '') ]; # https://francis.begyn.be/blog/nixos-restic-backups