about summary refs log tree commit diff
path: root/hosts/common
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-05 20:12:56 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-05 20:12:56 -0700
commitf3657271d6ea2408d812d32eea9862b61e49f5d8 (patch)
treec6ea56f0616174024c7293ce032b7adacf7ea884 /hosts/common
parentrefactor security to a module (diff)
downloadworld-f3657271d6ea2408d812d32eea9862b61e49f5d8.tar.gz
refactor network configuration
Diffstat (limited to '')
-rw-r--r--hosts/common/system/default.nix2
-rw-r--r--hosts/common/system/network.nix19
2 files changed, 1 insertions, 20 deletions
diff --git a/hosts/common/system/default.nix b/hosts/common/system/default.nix
index 9b2a7e4..8ccb80f 100644
--- a/hosts/common/system/default.nix
+++ b/hosts/common/system/default.nix
@@ -1,5 +1,5 @@
 { pkgs, ... }:
 
 {
-  imports = [ ./boot.nix ./hardware.nix ./network.nix ];
+  imports = [ ./boot.nix ./hardware.nix ];
 }
diff --git a/hosts/common/system/network.nix b/hosts/common/system/network.nix
deleted file mode 100644
index df5aa27..0000000
--- a/hosts/common/system/network.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-{ config, pkgs, lib, hostname, ... }:
-
-{
-  networking = {
-    hostName = hostname;
-    useNetworkd = true;
-    wireless.enable = false;
-    useDHCP = false;
-  };
-
-  services.nscd.enable = false;
-  system.nssModules = lib.mkForce [ ];
-
-  # Use systemd-resolved
-  services.resolved = {
-    enable = true;
-    dnssec = "false";
-  };
-}