2020-08-15 19:36:16 +04:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
{
|
2019-08-27 23:41:02 +04:00
|
|
|
networking = {
|
2022-09-23 21:26:59 +03:00
|
|
|
networkmanager.enable = true;
|
2021-10-25 23:13:24 +03:00
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowPing = true;
|
|
|
|
};
|
2020-08-05 04:52:30 +04:00
|
|
|
usePredictableInterfaceNames = true;
|
2020-08-04 01:46:48 +04:00
|
|
|
hostName = config.device;
|
2019-08-27 23:41:02 +04:00
|
|
|
};
|
2022-12-14 23:46:25 +03:00
|
|
|
|
2023-03-26 19:24:28 +03:00
|
|
|
persist.state.directories = lib.mkIf config.networking.networkmanager.enable [
|
2022-12-14 23:46:25 +03:00
|
|
|
"/etc/NetworkManager/system-connections"
|
|
|
|
];
|
2019-08-27 23:41:02 +04:00
|
|
|
}
|