1
0
Fork 0

deploy-rs: Include changelog in output

This commit is contained in:
Daniel Kempkens 2023-05-14 21:24:51 +02:00
parent 79382d4b83
commit 8c457fb704
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
5 changed files with 10 additions and 5 deletions

View file

@ -7,6 +7,7 @@ in
{
imports = [
../../hardware/hosts/adsb-antenna.nix
../shared/show-update-changelog.nix
../nixos/raspberry.nix
../nixos/ssh.nix

View file

@ -8,6 +8,7 @@ in
imports = [
../../hardware/hosts/attic.nix
../../agenix/hosts/attic/config.nix
../shared/show-update-changelog.nix
../nixos/ssh.nix
../nixos/git.nix

View file

@ -8,6 +8,7 @@ in
imports = [
../../hardware/hosts/mediaserver.nix
../../agenix/hosts/mediaserver/config.nix
../shared/show-update-changelog.nix
../nixos/ssh.nix
../nixos/git.nix

View file

@ -1,8 +1,6 @@
args@{ pkgs, lib, ... }:
args@{ pkgs, ... }:
let
inherit (lib) optionals;
secret = import ../../secret/hosts/sail.nix;
ssh-keys = import ../shared/ssh-keys.nix;
in
@ -10,6 +8,7 @@ in
imports = [
../../hardware/hosts/sail.nix
../../agenix/hosts/sail/config.nix
../shared/show-update-changelog.nix
../nixos/ssh.nix
../nixos/git.nix

View file

@ -1,7 +1,10 @@
{ pkgs, config, ... }:
{ config, ... }:
{
system.activationScripts.show-update-changelog = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir='${config.nix.package}/bin' diff $(ls -d /nix/var/nix/profiles/system-*-link | tail -n2)
if [[ -e /run/current-system ]]; then
echo "[show-update-changelog] Changelog"
${config.nix.package}/bin/nix store diff-closures /run/current-system "$systemConfig" || true
fi
'';
}