about summary refs log tree commit diff stats
path: root/nix-conf/home/includes/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'nix-conf/home/includes/scripts')
-rw-r--r--nix-conf/home/includes/scripts/hm-changes-report.nix7
-rw-r--r--nix-conf/home/includes/scripts/system-changes-report.nix7
2 files changed, 7 insertions, 7 deletions
diff --git a/nix-conf/home/includes/scripts/hm-changes-report.nix b/nix-conf/home/includes/scripts/hm-changes-report.nix
index 0df6e4c..65e7fe8 100644
--- a/nix-conf/home/includes/scripts/hm-changes-report.nix
+++ b/nix-conf/home/includes/scripts/hm-changes-report.nix
@@ -2,9 +2,9 @@
 
 # https://github.com/gvolpe/nix-config/blob/e28a220d0087064e6bad6b992b4914a65eb545e5/home/scripts/changes-report.nix
 let
-  hm-profiles =
-    "${config.home.homeDirectory}/.local/state/nix/profiles/home-manager-*-link";
-in pkgs.writeShellScriptBin "hm-changes-report" ''
+  hm-profiles = "${config.home.homeDirectory}/.local/state/nix/profiles/home-manager-*-link";
+in
+pkgs.writeShellScriptBin "hm-changes-report" ''
   # Disable nvd if there are less than 2 hm profiles.
   if [ $(ls -d1v ${hm-profiles} 2>/dev/null | wc -l) -lt 2 ]; then
     echo "Skipping changes report..."
@@ -12,4 +12,3 @@ in pkgs.writeShellScriptBin "hm-changes-report" ''
     ${pkgs.nvd}/bin/nvd diff $(ls -d1v ${hm-profiles} | tail -2)
   fi
 ''
-
diff --git a/nix-conf/home/includes/scripts/system-changes-report.nix b/nix-conf/home/includes/scripts/system-changes-report.nix
index c7f0449..b94498c 100644
--- a/nix-conf/home/includes/scripts/system-changes-report.nix
+++ b/nix-conf/home/includes/scripts/system-changes-report.nix
@@ -1,8 +1,10 @@
 { config, pkgs, ... }:
 
 # https://github.com/gvolpe/nix-config/blob/e28a220d0087064e6bad6b992b4914a65eb545e5/home/scripts/changes-report.nix
-let system-profiles = "/nix/var/nix/profiles/system-*-link";
-in pkgs.writeShellScriptBin "system-changes-report" ''
+let
+  system-profiles = "/nix/var/nix/profiles/system-*-link";
+in
+pkgs.writeShellScriptBin "system-changes-report" ''
   # Disable nvd if there are less than 2 hm profiles.
   if [ $(ls -d1v ${system-profiles} 2>/dev/null | wc -l) -lt 2 ]; then
     echo "Skipping changes report..."
@@ -10,4 +12,3 @@ in pkgs.writeShellScriptBin "system-changes-report" ''
     ${pkgs.nvd}/bin/nvd diff $(ls -d1v ${system-profiles} | tail -2)
   fi
 ''
-