Skip to content

Commit

Permalink
disable usage of predictable network interface names
Browse files Browse the repository at this point in the history
  • Loading branch information
herbetom committed Sep 27, 2023
1 parent 0d17924 commit 1312b14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
{
#isoImage.squashfsCompression = "gzip -Xcompression-level 1";

boot.kernelParams = [ "net.ifnames=0" ];

services.openssh.enable = lib.mkForce false;
services.openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";

Expand All @@ -29,14 +31,14 @@

networking = {
useNetworkd = true;
usePredictableInterfaceNames = true;
usePredictableInterfaceNames = false;
useDHCP = false;
};

services.getty.helpLine = lib.mkForce ''
#####################################################################
# #
# Run `sudo send-network-request enp1s0` to start sending requests. #
# Run `sudo send-network-request eth0` to start sending requests. #
# #
#####################################################################
'';
Expand Down

0 comments on commit 1312b14

Please sign in to comment.