diff options
author | lassulus <lassulus@lassul.us> | 2018-02-10 19:48:38 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-02-10 19:48:38 +0100 |
commit | f2aeaae4a471a9db50b303a2528a084f8eb68496 (patch) | |
tree | 4cd282af4ee0731077cbe11c9d090f894a76b2fc /makefu/2configs/hw/network-manager.nix | |
parent | e000690cc2fa3b494cf3b44eb0213dda80b34e12 (diff) | |
parent | e7418fbdf1bdddeeabe123c04bbd858fc70fe031 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/hw/network-manager.nix')
-rw-r--r-- | makefu/2configs/hw/network-manager.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/makefu/2configs/hw/network-manager.nix b/makefu/2configs/hw/network-manager.nix new file mode 100644 index 000000000..7e29849b1 --- /dev/null +++ b/makefu/2configs/hw/network-manager.nix @@ -0,0 +1,37 @@ +{ pkgs, lib, ... }: +{ + users.users.makefu = { + extraGroups = [ "networkmanager" ]; + packages = with pkgs;[ + networkmanagerapplet + gnome3.gnome_keyring gnome3.dconf + ]; + }; + 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; + + # TODO: put somewhere else + services.xserver.displayManager.sessionCommands = '' + ${pkgs.clipit}/bin/clipit & + ${pkgs.networkmanagerapplet}/bin/nm-applet & + ''; + +# nixOSUnstable +# networking.networkmanager.wifi = { +# powersave = true; +# scanRandMacAddress = true; +# }; +} |