diff --git a/hosts/nixos-laptop/default.nix b/hosts/nixos-laptop/default.nix index 71b149a..5e383ab 100644 --- a/hosts/nixos-laptop/default.nix +++ b/hosts/nixos-laptop/default.nix @@ -29,7 +29,7 @@ name = "zfs-diff"; runtimeInputs = with pkgs; [ zfs coreutils parallel tree ]; text = '' - sudo zfs diff zroot/encrypted/root@blank | cut -f2 | parallel 'test -e /persist/{} || echo {}' | tree --fromfile . + zfs diff -F zroot/encrypted/root@blank | awk '$2 == "F" && system("test -e /persist/"$3) != 0 { print $3 }' 2>/dev/null | tree --fromfile . "$@" ''; } )