summaryrefslogtreecommitdiffstats
path: root/lass/2configs/network-manager.nix
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-02-25 16:47:44 +0100
committerjeschli <jeschli@gmail.com>2018-02-25 16:47:44 +0100
commite5b89294d763a2ec2c289f08e4050f7776deacfd (patch)
tree75f1aff22efee3241d2967e3f5f05efd39845868 /lass/2configs/network-manager.nix
parent52b846c98b21f19c2a138361191439c487fc87cc (diff)
parent23a7012581e11e73f1dd9ceb5683c7384836a318 (diff)
Merge branch 'master' of prism.r:stockholm into staging/jeschli
Diffstat (limited to 'lass/2configs/network-manager.nix')
-rw-r--r--lass/2configs/network-manager.nix24
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
+ ];
+ };
+}