1
0

pkgs/bijwerken-*,modules/bijwerken: Consolidate system update management and refactor under the same name

This commit is contained in:
2025-08-17 21:49:24 +02:00
parent 72cdef91d9
commit dd76691f7d
18 changed files with 40 additions and 33 deletions

View File

@@ -1,10 +0,0 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "nixfiles-trigger-system-upgrade";
text = builtins.readFile ./nixfiles-trigger-system-upgrade.sh;
runtimeInputs = with pkgs; [
pssh
];
}

View File

@@ -1,5 +0,0 @@
#!/usr/bin/env bash
TARGETS="$(nix --extra-experimental-features "nix-command flakes" eval --raw ".#nixosConfigurations" --apply "nixosConfigurations: builtins.concatStringsSep \"\\n\" (builtins.attrValues (builtins.mapAttrs (name: host: host.config.networking.fqdn) nixosConfigurations))")"
pssh -h <(echo "${TARGETS}") -i -- sudo systemctl start clerie-system-auto-upgrade.service --no-block