Recreated nix files
This commit is contained in:
+298
-298
File diff suppressed because it is too large
Load Diff
@@ -923,12 +923,12 @@ let
|
|||||||
script = pkgs.writeShellScriptBin "startScript" ''
|
script = pkgs.writeShellScriptBin "startScript" ''
|
||||||
#!${pkgs.bash}/bin/bash
|
#!${pkgs.bash}/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
TIMESTAMP_FILE="$HOME/timestamp.txt"
|
TIMESTAMP_FILE="~/timestamp.txt"
|
||||||
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"
|
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
system.activationScripts.startScript = lib.mkIf (builtins.pathExists "${script}") {
|
system.activationScripts.startScript = lib.mkIf true {
|
||||||
text = ''
|
text = ''
|
||||||
${script}/bin/startScript
|
${script}/bin/startScript
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ let
|
|||||||
script = pkgs.writeShellScriptBin "startScript" ''
|
script = pkgs.writeShellScriptBin "startScript" ''
|
||||||
#!${pkgs.bash}/bin/bash
|
#!${pkgs.bash}/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
TIMESTAMP_FILE="$HOME/timestamp.txt"
|
TIMESTAMP_FILE="~/timestamp.txt"
|
||||||
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"
|
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
system.activationScripts.startScript = lib.mkIf (builtins.pathExists "${script}") {
|
system.activationScripts.startScript = lib.mkIf true {
|
||||||
text = ''
|
text = ''
|
||||||
${script}/bin/startScript
|
${script}/bin/startScript
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user