diff options
author | Silvan Mosberger <contact@infinisil.com> | 2023-12-08 23:11:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 23:11:05 +0100 |
commit | bf67c02b1b9392e83d4dab3776f4254b9d126e5f (patch) | |
tree | 16370456ec792e18bc7a0c43dd50db71f678a4d6 /nixos/modules/services/backup | |
parent | eaa482cddd4d6c05bb7a19f15717d32b068575a8 (diff) | |
parent | 50793752a71b35bc0dab203db7d6ad18281e2e1e (diff) |
Merge pull request #272744 from hercules-ci/lib-lists-sortOn
`lib.lists.sortOn`: init
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r-- | nixos/modules/services/backup/btrbk.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/backup/btrbk.nix b/nixos/modules/services/backup/btrbk.nix index 1e90ef54d33f..3cbbf0f1bd5c 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: |