Auto: cleanup-2026-05-18T16-56-07Z

This commit is contained in:
2026-05-18 18:56:47 +02:00
parent 21ee9df5fe
commit e2d79fe94c
86 changed files with 481 additions and 736 deletions
+3 -6
View File
@@ -1,7 +1,4 @@
{
pkgs,
...
}:
{pkgs, ...}:
pkgs.writeShellApplication {
name = "custom-autoupdate";
@@ -30,7 +27,7 @@ pkgs.writeShellApplication {
nix flake update --flake "$FLAKE_DIR"
if sudo /run/current-system/sw/bin/nixos-rebuild switch --flake "$FLAKE" 2> "$ERROR_FILE"; then # use /run/.../bin/ uses the sudoless rule
if ! git -C "$FLAKE_DIR" diff --quiet -- flake.lock; then
git -C "$FLAKE_DIR" add flake.lock
git -C "$FLAKE_DIR" commit -m "flake.lock: autoupdate-$TIME"
@@ -57,7 +54,7 @@ pkgs.writeShellApplication {
git -C "$FLAKE_DIR" reset --hard "pre-autoupdate-$TIME"
fi
rm -f "$ERROR_FILE"
'';
}
+1 -2
View File
@@ -1,5 +1,4 @@
{ pkgs }:
{pkgs}:
pkgs.writeShellApplication {
name = "custom-checkMatrix";
+3 -6
View File
@@ -1,7 +1,4 @@
{
pkgs,
...
}:
{pkgs, ...}:
pkgs.writeShellApplication {
name = "custom-cleanNix";
@@ -34,7 +31,7 @@ pkgs.writeShellApplication {
alejandra "$FLAKE_DIR" # formats the config
if sudo /run/current-system/sw/bin/nixos-rebuild switch --flake "$FLAKE" 2> "$ERROR_FILE"; then # use /run/.../bin/ uses the sudoless rule
if ! git -C "$FLAKE_DIR" diff --quiet HEAD; then
git -C "$FLAKE_DIR" add -A
git -C "$FLAKE_DIR" commit -m "Auto: cleanup-$TIME"
@@ -62,7 +59,7 @@ pkgs.writeShellApplication {
git -C "$FLAKE_DIR" reset --hard "pre-cleanup-$TIME"
fi
git -C "$FLAKE_DIR" tag -d "pre-cleanup-$TIME" # removes the tag
rm -f "$ERROR_FILE"
'';
}