deploy-rs: Include changelog in output
This commit is contained in:
parent
79382d4b83
commit
8c457fb704
5 changed files with 10 additions and 5 deletions
|
@ -7,6 +7,7 @@ in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../hardware/hosts/adsb-antenna.nix
|
../../hardware/hosts/adsb-antenna.nix
|
||||||
|
../shared/show-update-changelog.nix
|
||||||
../nixos/raspberry.nix
|
../nixos/raspberry.nix
|
||||||
../nixos/ssh.nix
|
../nixos/ssh.nix
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
../../hardware/hosts/attic.nix
|
../../hardware/hosts/attic.nix
|
||||||
../../agenix/hosts/attic/config.nix
|
../../agenix/hosts/attic/config.nix
|
||||||
|
../shared/show-update-changelog.nix
|
||||||
../nixos/ssh.nix
|
../nixos/ssh.nix
|
||||||
|
|
||||||
../nixos/git.nix
|
../nixos/git.nix
|
||||||
|
|
|
@ -8,6 +8,7 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
../../hardware/hosts/mediaserver.nix
|
../../hardware/hosts/mediaserver.nix
|
||||||
../../agenix/hosts/mediaserver/config.nix
|
../../agenix/hosts/mediaserver/config.nix
|
||||||
|
../shared/show-update-changelog.nix
|
||||||
../nixos/ssh.nix
|
../nixos/ssh.nix
|
||||||
|
|
||||||
../nixos/git.nix
|
../nixos/git.nix
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
args@{ pkgs, lib, ... }:
|
args@{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) optionals;
|
|
||||||
|
|
||||||
secret = import ../../secret/hosts/sail.nix;
|
secret = import ../../secret/hosts/sail.nix;
|
||||||
ssh-keys = import ../shared/ssh-keys.nix;
|
ssh-keys = import ../shared/ssh-keys.nix;
|
||||||
in
|
in
|
||||||
|
@ -10,6 +8,7 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
../../hardware/hosts/sail.nix
|
../../hardware/hosts/sail.nix
|
||||||
../../agenix/hosts/sail/config.nix
|
../../agenix/hosts/sail/config.nix
|
||||||
|
../shared/show-update-changelog.nix
|
||||||
../nixos/ssh.nix
|
../nixos/ssh.nix
|
||||||
|
|
||||||
../nixos/git.nix
|
../nixos/git.nix
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
{ pkgs, config, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
system.activationScripts.show-update-changelog = ''
|
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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue