nixos-config/profiles/network.nix
Dmitriy Kholkin e965d93842
Some checks failed
Build ISO / build (push) Has been cancelled
huge cleanup and refactoring
2024-01-21 19:29:36 +03:00

17 lines
360 B
Nix

{ pkgs, lib, config, ... }:
{
networking = {
networkmanager.enable = true;
firewall = {
enable = true;
allowPing = true;
};
usePredictableInterfaceNames = true;
hostName = config.device;
};
persist.state.directories = lib.mkIf config.networking.networkmanager.enable [
"/etc/NetworkManager/system-connections"
];
}