don't use a let ... in construct

This commit is contained in:
Daylin Morgan 2024-01-29 09:57:03 -06:00
parent 5927943647
commit 365f87eb04
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -2,12 +2,7 @@
inputs, inputs,
pkgs, 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; [ imports = with inputs.self.nixosModules; [
docker docker
]; ];
@ -21,7 +16,9 @@ in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
rclone 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 # https://francis.begyn.be/blog/nixos-restic-backups