diff options
| author | quentin.aristote@tu-dresden.de <quentin.aristote@tu-dresden.de> | 2026-10-26 10:07:36 +0100 |
|---|---|---|
| committer | quentin.aristote@tu-dresden.de <quentin.aristote@tu-dresden.de> | 2026-10-26 10:08:39 +0100 |
| commit | c505ed9908758d6ccfa881ef66206912eb70c027 (patch) | |
| tree | d7f400f88ed417629d08ea6a27c8dd500b833857 /modules/nixos/personal/hardware.nix | |
| parent | 767597b88e18767a83044d87557696d076e36bf0 (diff) | |
| download | my-nixpkgs-c505ed9908758d6ccfa881ef66206912eb70c027.tar.gz my-nixpkgs-c505ed9908758d6ccfa881ef66206912eb70c027.tar.bz2 my-nixpkgs-c505ed9908758d6ccfa881ef66206912eb70c027.tar.xz | |
nixos: remove deprecated option
Diffstat (limited to 'modules/nixos/personal/hardware.nix')
| -rw-r--r-- | modules/nixos/personal/hardware.nix | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/modules/nixos/personal/hardware.nix b/modules/nixos/personal/hardware.nix index f545517..f348376 100644 --- a/modules/nixos/personal/hardware.nix +++ b/modules/nixos/personal/hardware.nix @@ -42,7 +42,14 @@ in config = lib.mkMerge [ { hardware.firmware = lib.optional cfg.firmwareNonFree.enable pkgs.linux-firmware; - boot.initrd.availableKernelModules = lib.optional cfg.usb.enable "usb_storage"; + boot.initrd = { + availableKernelModules = lib.optional cfg.usb.enable "usb_storage"; + luks.devices.crypt.device = + let + crypt = cfg.disks.crypted; + in + lib.mkIf (crypt != null) crypt; + }; services.udev.extraRules = lib.optionalString (cfg.backlights.screen != null) '' @@ -53,18 +60,6 @@ in ''; } - ( - let - crypt = cfg.disks.crypted; - in - lib.mkIf (crypt != null) { - boot.initrd.luks.devices.crypt = { - device = crypt; - preLVM = true; - }; - } - ) - (lib.mkIf cfg.sound.enable { security.rtkit.enable = true; services.pipewire = { |
