nyx/modules/iso/networking.nix

20 lines
617 B
Nix
Raw Permalink Normal View History

2025-01-27 22:31:45 +02:00
{lib, ...}: let
inherit (lib.modules) mkForce;
in {
# use networkmanager in the live environment
networking.networkmanager = {
enable = true;
# we don't want any plugins, they only takeup space
# you might consider adding some if you need a VPN for example
plugins = mkForce [];
};
networking.wireless.enable = mkForce false;
# allow ssh into the system for headless installs
systemd.services.sshd.wantedBy = mkForce ["multi-user.target"];
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILPbmiNqoyeKXk/VopFm2cFfEnV4cKCFBhbhyYB69Fuu"
];
}