diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-12-16 00:02:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-16 00:02:17 +0000 |
commit | b9ac6ee4d9d69a9163a2bbaf08a5ff053bec13e4 (patch) | |
tree | 3b2ac0cc3172c03aab1a4b0710decbb194da420b /nixos/modules/config | |
parent | c2a66b3c22a6188e20175ad564e79b4095739753 (diff) | |
parent | bf012373ca54516c086bed13fad4521766547ae8 (diff) |
Merge master into staging-next
Diffstat (limited to 'nixos/modules/config')
-rw-r--r-- | nixos/modules/config/swap.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/swap.nix b/nixos/modules/config/swap.nix index 10d52ade288bb..76a054b100ebe 100644 --- a/nixos/modules/config/swap.nix +++ b/nixos/modules/config/swap.nix @@ -160,7 +160,7 @@ let config = rec { device = mkIf options.label.isDefined "/dev/disk/by-label/${config.label}"; - deviceName = lib.replaceChars ["\\"] [""] (escapeSystemdPath config.device); + deviceName = lib.replaceStrings ["\\"] [""] (escapeSystemdPath config.device); realDevice = if config.randomEncryption.enable then "/dev/mapper/${deviceName}" else config.device; }; |