Add option for networkmanager configuration.
This commit is contained in:
parent
43a1b7881b
commit
c968d00767
3 changed files with 28 additions and 1 deletions
26
config/networkmanager.nix
Normal file
26
config/networkmanager.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
mkIf (elem "networkmanager" config.machine.conffiles) {
|
||||
|
||||
networking = {
|
||||
inherit (config.machine) hostName;
|
||||
};
|
||||
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
plugins = with pkgs; [
|
||||
networkmanager-openconnect
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
networkmanagerapplet
|
||||
networkmanager_dmenu
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue