summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/hw/network-manager.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-02-06 11:55:12 +0100
committermakefu <github@syntax-fehler.de>2018-02-06 11:56:17 +0100
commitef3a0dcff538c850c25b46165ed70c899873bece (patch)
tree36144ad1b4111440b5f8ad7d090ba47a9dc20a11 /makefu/2configs/hw/network-manager.nix
parentfac9f4d2a0d855e4b27244df6a3bb831e0305f6b (diff)
ma wvdial: rip
Diffstat (limited to 'makefu/2configs/hw/network-manager.nix')
-rw-r--r--makefu/2configs/hw/network-manager.nix37
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;
+# };
+}