feat: ask-password as shell
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
5cd943d3e5
commit
5d68fbf0a1
1 changed files with 18 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
networking.hyp-01.ipv4.address = lib.mkOption {
|
||||
|
|
@ -44,6 +49,18 @@
|
|||
boot.initrd = {
|
||||
availableKernelModules = [ "e1000e" ];
|
||||
|
||||
systemd =
|
||||
let
|
||||
askPass = pkgs.writeShellScriptBin "zfs-askpass" ''
|
||||
systemd-tty-ask-password-agent --watch
|
||||
'';
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
storePaths = [ "${askPass}/bin/zfs-askpass" ];
|
||||
users.root.shell = "${askPass}/bin/zfs-askpass";
|
||||
};
|
||||
|
||||
network = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue