about summary refs log tree commit diff stats
path: root/nix-conf/home/includes
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-03 15:50:37 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-09-03 15:50:37 +0100
commit31e462e924c50523e0a37069eb7c043c48b0f390 (patch)
tree157394184ee0348773fe2537d37e04b58472e850 /nix-conf/home/includes
parente8eba7eb1233fafd4655c15a308b7f98be8c29a9 (diff)
downloaddotfiles-31e462e924c50523e0a37069eb7c043c48b0f390.tar.gz
Format scripts with nixfmt
Diffstat (limited to 'nix-conf/home/includes')
-rw-r--r--nix-conf/home/includes/scripts/hm-changes-report.nix6
-rw-r--r--nix-conf/home/includes/scripts/system-changes-report.nix6
2 files changed, 5 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 d015180..0df6e4c 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..."
diff --git a/nix-conf/home/includes/scripts/system-changes-report.nix b/nix-conf/home/includes/scripts/system-changes-report.nix
index 56166cb..c7f0449 100644
--- a/nix-conf/home/includes/scripts/system-changes-report.nix
+++ b/nix-conf/home/includes/scripts/system-changes-report.nix
@@ -1,10 +1,8 @@
 { 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..."