Commit bcd38e11 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

nixos/systemd: fix enabling non-existent service

This service doesn't exist when withBootLoader is false.

Fixes: 2c98ea1e ("nixos/systemd: add upstream units for boot counting")
parent 6e150714
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -107,15 +107,16 @@ let
    # Maintaining state across reboots.
    "systemd-random-seed.service"
  ]
  ++ (optional cfg.package.withBootloader "systemd-boot-random-seed.service")
  ++ optionals cfg.package.withBootloader [
    "systemd-boot-random-seed.service"
    "systemd-bless-boot.service"
  ]
  ++ [
    "systemd-backlight@.service"
    "systemd-rfkill.service"
    "systemd-rfkill.socket"

    # Boot counting
    "boot-complete.target"
    "systemd-bless-boot.service"

    # Hibernate / suspend.
    "hibernate.target"