about summary refs log tree commit diff
path: root/packages
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-12-26 16:36:18 +0300
committerAzat Bahawi <azat@bahawi.net>2023-12-26 16:36:18 +0300
commit41b54ce8297b1ed2f5fb7d6491c7d82b24ccdc91 (patch)
tree964ced76ad915e88df5642b656950e117d0904d7 /packages
parent2023-12-18 (diff)
2023-12-26
Diffstat (limited to '')
-rw-r--r--packages/nixfiles.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/nixfiles.nix b/packages/nixfiles.nix
index bfc869a..286214c 100644
--- a/packages/nixfiles.nix
+++ b/packages/nixfiles.nix
@@ -3,6 +3,7 @@
   jq,
   lib,
   nix,
+  nvd,
   openssh,
   stdenv,
   symlinkJoin,
@@ -18,6 +19,7 @@
         git
         jq
         nix
+        nvd
         openssh
       ]
       ++ lib.optional stdenv.isLinux xdg-utils;
@@ -110,6 +112,9 @@
               export VERBOSE=1
               exec nix shell -v ".#$attr" "$@" -c home-manager-generation
               ;;
+          diff)
+              exec nvd diff /run/current-system "$nixfiles/result"
+              ;;
           @*)
               # Assumes that hosts are configured in the OpenSSH configuration.
               host=''${cmd#@}

Consider giving Nix/NixOS a try! <3