parent
96b4caf86e
commit
8fd1e0819f
1 changed files with 1 additions and 3 deletions
|
@ -1,12 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
# set $HOME to avoid 'warning: $HOME is not owned by you'
|
||||
# https://github.com/NixOS/nix/issues/6834
|
||||
# srvos
|
||||
system.activationScripts.preActivation.text = ''
|
||||
if [[ -e /run/current-system ]]; then
|
||||
echo "--- diff to current-system"
|
||||
HOME=/var/root ${pkgs.nvd}/bin/nvd --nix-bin-dir=${config.nix.package}/bin diff /run/current-system "$systemConfig"
|
||||
${pkgs.nvd}/bin/nvd --nix-bin-dir=${config.nix.package}/bin diff /run/current-system "$systemConfig"
|
||||
echo "---"
|
||||
fi
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue