summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 16:25:32 +0200
committerAlan Pearce2017-09-09 16:49:30 +0200
commit0cef6aa80ff7d52afe80b7086cc3452bf020722a (patch)
tree804bfc742db28e332cc7628730fb84baee83a690
parent12be12c3130dfcb9190afe35a462e4ba2c850a31 (diff)
downloadnixfiles-0cef6aa80ff7d52afe80b7086cc3452bf020722a.tar.lz
nixfiles-0cef6aa80ff7d52afe80b7086cc3452bf020722a.tar.zst
nixfiles-0cef6aa80ff7d52afe80b7086cc3452bf020722a.zip
Add modules for network configuration
-rw-r--r--modules/connman.nix12
-rw-r--r--modules/network-manager.nix10
-rw-r--r--satoshipad.nix1
3 files changed, 23 insertions, 0 deletions
diff --git a/modules/connman.nix b/modules/connman.nix
new file mode 100644
index 00000000..cbd216cf
--- /dev/null
+++ b/modules/connman.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, ... }:
+
+{ networking.connman = {
+    enable = true;
+  };
+
+  environment.systemPackages = with pkgs; [
+    cmst
+    connman-notify
+    connman_dmenu
+  ];
+}
diff --git a/modules/network-manager.nix b/modules/network-manager.nix
new file mode 100644
index 00000000..b85b8f41
--- /dev/null
+++ b/modules/network-manager.nix
@@ -0,0 +1,10 @@
+{ config, pkgs, ... }:
+
+{ networking.networkmanager = {
+    enable = true;
+  };
+
+  environment.systemPackages = with pkgs; [
+    networkmanagerapplet
+  ];
+}
diff --git a/satoshipad.nix b/satoshipad.nix
index 6c8d6d34..6aba5a6f 100644
--- a/satoshipad.nix
+++ b/satoshipad.nix
@@ -28,6 +28,7 @@
     ./modules/satoshipay.nix
     ./modules/accounting.nix
     ./modules/passwords.nix
+    ./modules/network-manager.nix
   ];
 
   networking.hostName = "satoshipad";