mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 05:39:05 +08:00
system.initrd: fix network
This commit is contained in:
parent
ed349970c2
commit
a89fe55896
@ -14,14 +14,20 @@ inputs:
|
|||||||
};
|
};
|
||||||
config = let inherit (inputs.config.nixos.system) initrd; in inputs.lib.mkMerge
|
config = let inherit (inputs.config.nixos.system) initrd; in inputs.lib.mkMerge
|
||||||
[
|
[
|
||||||
{ boot.initrd.systemd.enable = true; }
|
{
|
||||||
|
boot =
|
||||||
|
{
|
||||||
|
initrd.systemd.enable = true;
|
||||||
|
kernelParams = [ "boot.shell_on_fail" "systemd.setenv=SYSTEMD_SULOGIN_FORCE=1" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
(
|
(
|
||||||
inputs.lib.mkIf (initrd.sshd.enable)
|
inputs.lib.mkIf (initrd.sshd.enable)
|
||||||
{
|
{
|
||||||
boot =
|
boot =
|
||||||
{
|
{
|
||||||
initrd.network = { enable = true; ssh = { enable = true; hostKeys = initrd.sshd.hostKeys; }; };
|
initrd.network = { enable = true; ssh = { enable = true; hostKeys = initrd.sshd.hostKeys; }; };
|
||||||
kernelParams = [ "ip=dhcp" "boot.shell_on_fail" "systemd.setenv=SYSTEMD_SULOGIN_FORCE=1" ];
|
kernelParams = [ "ip=dhcp" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user