Skip to content

Commit

Permalink
nixos: fix systemd when systemd-boot is disabled (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Bishop <[email protected]>
  • Loading branch information
bolives-hax and cleverca22 authored Oct 14, 2024
1 parent 50dd867 commit 6895cf3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nixos/modules/system/boot/systemd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ let
"sleep.target"
"hybrid-sleep.target"
"systemd-hibernate.service"
] ++ optionals cfg.package.withBootloader [
"systemd-hibernate-clear.service"
"[email protected]"
"systemd-bootctl.socket"
] ++ [
"systemd-hybrid-sleep.service"
"systemd-suspend.service"
"systemd-suspend-then-hibernate.service"
Expand All @@ -138,11 +142,9 @@ let
"systemd-ask-password-wall.service"

# Varlink APIs
"[email protected]"
"systemd-bootctl.socket"
"[email protected]"
"systemd-creds.socket"
] ++ lib.optional cfg.package.withTpm2Tss [
] ++ lib.optional (cfg.package.withBootloader && cfg.package.withTpm2Tss) [
"[email protected]"
"systemd-pcrlock.socket"
] ++ [
Expand Down

0 comments on commit 6895cf3

Please sign in to comment.