Remove unused code

This commit is contained in:
Jakob Lechner 2025-04-09 22:44:36 +02:00
parent af5a07ca19
commit 48e71f75f8
104 changed files with 151 additions and 229 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.jalr.luksUsbUnlock;
in
@ -59,7 +59,7 @@ in
kernelModules = [ "uas" "usbcore" "usb_storage" "vfat" "nls_cp437" "nls_iso8859_1" ];
systemd.services =
let
makeService = name: { keyPath, usbDevice, waitForDevice }:
makeService = name: { usbDevice, waitForDevice, ... }:
let
usbDevPath = makeUsbDevPath usbDevice;
usbMountPath = makeMountPath usbDevice;
@ -106,7 +106,7 @@ in
cfg.devices;
luks.devices = builtins.mapAttrs
(name: { keyPath, usbDevice, ... }:
(_: { keyPath, usbDevice, ... }:
let
usbMountPath = makeMountPath usbDevice;
in