about summary refs log tree commit diff
path: root/nixos/modules/services/backup/btrbk.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/backup/btrbk.nix')
-rw-r--r--nixos/modules/services/backup/btrbk.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/backup/btrbk.nix b/nixos/modules/services/backup/btrbk.nix
index 1e90ef54d33f9..3cbbf0f1bd5c0 100644
--- a/nixos/modules/services/backup/btrbk.nix
+++ b/nixos/modules/services/backup/btrbk.nix
@@ -13,7 +13,7 @@ let
     mkIf
     mkOption
     optionalString
-    sort
+    sortOn
     types
     ;
 
@@ -37,7 +37,7 @@ let
   genConfig = set:
     let
       pairs = mapAttrsToList (name: value: { inherit name value; }) set;
-      sortedPairs = sort (a: b: prioOf a < prioOf b) pairs;
+      sortedPairs = sortOn prioOf pairs;
     in
       concatMap genPair sortedPairs;
   genSection = sec: secName: value: