diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-05 20:12:56 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-05 20:12:56 -0700 |
commit | f3657271d6ea2408d812d32eea9862b61e49f5d8 (patch) | |
tree | c6ea56f0616174024c7293ce032b7adacf7ea884 /hosts/common/system | |
parent | refactor security to a module (diff) | |
download | world-f3657271d6ea2408d812d32eea9862b61e49f5d8.tar.gz |
refactor network configuration
Diffstat (limited to 'hosts/common/system')
-rw-r--r-- | hosts/common/system/default.nix | 2 | ||||
-rw-r--r-- | hosts/common/system/network.nix | 19 |
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"; - }; -} |