nixpkgs/nixos
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
..
doc coursier: Rename binary to cs 2021-10-21 08:11:47 -04:00
lib nixos/lib/test-driver: set defaults in __init__ instead of class level 2021-10-19 16:29:19 +03:00
maintainers nixos/maintainers/scripts: Avoid copy in example 2021-10-17 23:57:42 +02:00
modules nixos/systemd: add remote-cryptsetup.target 2021-10-22 15:47:21 +02:00
tests nixos/samba: Add openFirewall option 2021-10-19 19:11:02 +11:00
COPYING
default.nix
README
release-combined.nix release-combined.tested: Add the Sway test 2021-05-27 13:36:48 +02:00
release-small.nix
release.nix NixOS/amazonImageZfs: init 2021-08-25 10:42:35 -04:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.