From a7fedb9e8abccc8aa6d511b8ab18fc126145695e Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Mon, 25 Dec 2023 12:06:58 +0100 Subject: [PATCH] script template --- modules/users/home-shared-modules.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/users/home-shared-modules.nix b/modules/users/home-shared-modules.nix index 00ca57d..12f12cf 100644 --- a/modules/users/home-shared-modules.nix +++ b/modules/users/home-shared-modules.nix @@ -43,6 +43,15 @@ } # Templates { - home.file."Templates/Empty file".text = ""; + home.file = { + "Templates/Empty file".text = ""; + "Templates/Empty bash script".text = '' + #!/usr/bin/env bash + # abort on error, undefined variables + set -eu + # print commands before execution + set -x + ''; + }; } ]