diff options
author | lassulus <lassulus@lassul.us> | 2018-02-22 18:23:12 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-02-22 18:23:12 +0100 |
commit | aef9e595f021ca9c6676d743b24b7de2a2592f5d (patch) | |
tree | ed101c67663d21d99a8d32f847e8c94146d46eaa /lass/2configs/network-manager.nix | |
parent | 34e88f9cef87c582fb7d88e90e5a96cb28a61188 (diff) |
l baseX: use network-manager
Diffstat (limited to 'lass/2configs/network-manager.nix')
-rw-r--r-- | lass/2configs/network-manager.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lass/2configs/network-manager.nix b/lass/2configs/network-manager.nix new file mode 100644 index 000000000..c4f757de1 --- /dev/null +++ b/lass/2configs/network-manager.nix @@ -0,0 +1,24 @@ +{ pkgs, lib, ... }: +{ + networking.wireless.enable = lib.mkForce false; + + systemd.services.modemmanager = { + description = "ModemManager"; + after = [ "network-manager.service" ]; + bindsTo = [ "network-manager.service" ]; + wantedBy = [ "network-manager.service" ]; + serviceConfig = { + ExecStart = "${pkgs.modemmanager}/bin/ModemManager"; + PrivateTmp = true; + Restart = "always"; + RestartSec = "5"; + }; + }; + networking.networkmanager.enable = true; + users.users.mainUser = { + extraGroups = [ "networkmanager" ]; + packages = with pkgs; [ + gnome3.gnome_keyring gnome3.dconf + ]; + }; +} |