diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2020-06-23 06:09:29 -0400 |
---|---|---|
committer | Will Fancher <elvishjerricco@gmail.com> | 2020-07-02 13:50:23 -0400 |
commit | c128229dcea2936080974f5d00341c59deab69fa (patch) | |
tree | 251967a4eb6aa39e3f55047b2960c8d5dddeebe9 | |
parent | 0d55d48f0fb4ca47bce2a45fdd9102174d832b18 (diff) | |
download | nixpkgs-c128229dcea2936080974f5d00341c59deab69fa.tar nixpkgs-c128229dcea2936080974f5d00341c59deab69fa.tar.gz nixpkgs-c128229dcea2936080974f5d00341c59deab69fa.tar.bz2 nixpkgs-c128229dcea2936080974f5d00341c59deab69fa.tar.lz nixpkgs-c128229dcea2936080974f5d00341c59deab69fa.tar.xz nixpkgs-c128229dcea2936080974f5d00341c59deab69fa.tar.zst nixpkgs-c128229dcea2936080974f5d00341c59deab69fa.zip |
plymouth: Enable systemd-ask-password-plymouth
-rw-r--r-- | nixos/modules/system/boot/plymouth.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/plymouth.nix b/nixos/modules/system/boot/plymouth.nix index 23fce22366d..55e5b07ed61 100644 --- a/nixos/modules/system/boot/plymouth.nix +++ b/nixos/modules/system/boot/plymouth.nix @@ -102,6 +102,8 @@ in systemd.services.plymouth-poweroff.wantedBy = [ "poweroff.target" ]; systemd.services.plymouth-reboot.wantedBy = [ "reboot.target" ]; systemd.services.plymouth-read-write.wantedBy = [ "sysinit.target" ]; + systemd.services.systemd-ask-password-plymouth.wantedBy = ["multi-user.target"]; + systemd.paths.systemd-ask-password-plymouth.wantedBy = ["multi-user.target"]; boot.initrd.extraUtilsCommands = '' copy_bin_and_libs ${pkgs.plymouth}/bin/plymouthd @@ -146,6 +148,7 @@ in # We use `mkAfter` to ensure that LUKS password prompt would be shown earlier than the splash screen. boot.initrd.preLVMCommands = mkAfter '' mkdir -p /etc/plymouth + mkdir -p /run/plymouth ln -s ${configFile} /etc/plymouth/plymouthd.conf ln -s $extraUtils/share/plymouth/plymouthd.defaults /etc/plymouth/plymouthd.defaults ln -s $extraUtils/share/plymouth/logo.png /etc/plymouth/logo.png |