diff options
author | tv <tv@krebsco.de> | 2018-02-28 22:51:18 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-02-28 22:51:18 +0100 |
commit | becf1ce7ac7688692c3770571387b3761be11698 (patch) | |
tree | 6238277fa4c42de03b393d89cdbb12d8582afba4 /lass/2configs/network-manager.nix | |
parent | 2934d4524bcbae13043d684a27597c8b08c0851b (diff) | |
parent | 793742b9d1b2eab942e5d06ed27028c636cda583 (diff) |
Merge remote-tracking branch 'prism/master'
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 + ]; + }; +} |