nixpkgs-suyu/nixos/modules/system/boot
Florian Klink 0084c41abf nixos/systemd: add remote-cryptsetup.target
/etc/crypttab can contain the _netdev option, which adds crypto devices
to the remote-cryptsetup.target.

remote-cryptsetup.target has a dependency on cryptsetup-pre.target. So
let's add both of them.

Currently, one needs to manually ssh in and invoke `systemctl start
systemd-cryptsetup@<name>.service` to unlock volumes.

After this change, systemd will properly add it to the target, and
assuming remote-cryptsetup.target is pulled in somewhere, you can simply
pass the passphrase by invoking `systemd-tty-ask-password-agent` after
ssh-ing in, without having to manually start these services.

Whether remote-cryptsetup.target should be added to multi-user.target
(as it is on other distros) is part of another discussion - right now
the following snippet will do:

```
systemd.targets.multi-user.wants = [ "remote-cryptsetup.target" ];
```
2021-10-22 15:47:21 +02:00
..
loader systemd-boot: add 'graceful' configuration option 2021-10-11 15:14:33 +02:00
binfmt.nix
emergency-mode.nix
grow-partition.nix
initrd-network.nix
initrd-openvpn.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
initrd-ssh.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
kernel.nix nixos.system.boot.kernel: stronger constraints for kernelParam type 2021-10-16 01:21:10 +03:00
kernel_config.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
kexec.nix kexec-tools: rename from kexectools to match the project name 2021-09-03 10:17:21 -04:00
luksroot.nix nixos/luksroot: sync the crypt-storage 2021-10-20 03:46:19 +03:00
modprobe.nix
networkd.nix nixos/networking: add foo-over-udp endpoint support 2021-10-16 20:48:03 -04:00
pbkdf2-sha512.c
plymouth.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
resolved.nix
shutdown.nix
stage-1-init.sh stage-1: fix copytoram option for loopback.cfg boot 2021-08-25 01:35:31 +00:00
stage-1.nix nixos/multipath: add multipath module 2021-10-08 09:47:38 -04:00
stage-2-init.sh
stage-2.nix
systemd-lib.nix
systemd-nspawn.nix
systemd-unit-options.nix
systemd.nix nixos/systemd: add remote-cryptsetup.target 2021-10-22 15:47:21 +02:00
timesyncd.nix
tmp.nix nixos/tmp: add tmpOnTmpfsSize 2021-09-08 19:30:52 +03:00