From 1c4df6655d9fe82bcbca575cfc42f354b7818fdd Mon Sep 17 00:00:00 2001 From: Miranda Marquez Date: Tue, 26 Mar 2024 19:48:00 -0800 Subject: [PATCH] split some networking into file --- configuration.nix | 7 +------ flake.nix | 4 ++++ modules/networking.nix | 8 ++++++++ 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 modules/networking.nix diff --git a/configuration.nix b/configuration.nix index eac94f0..122fe86 100644 --- a/configuration.nix +++ b/configuration.nix @@ -11,12 +11,7 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.extra-experimental-features = [ "nix-command" "flakes" ]; - # Enable networking - networking.networkmanager.enable = true; - networking.wireless.iwd = { - enable = true; - settings.General.EnableNetworkConfiguration = true; - }; + # Set your time zone. time.timeZone = "America/Anchorage"; diff --git a/flake.nix b/flake.nix index e09e7ac..faf9098 100644 --- a/flake.nix +++ b/flake.nix @@ -63,6 +63,7 @@ system = "aarch64-linux"; specialArgs = { inherit inputs; }; modules = [ + ./modules/networking.nix ./configuration.nix { services.xserver.videoDrivers = [ "modesetting" ]; boot.binfmt.emulatedSystems = ["x86_64-linux"]; @@ -92,6 +93,7 @@ system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ + ./modules/networking.nix ./configuration.nix { networking.hostName = "breakdown"; boot.loader.efi.canTouchEfiVariables = true; @@ -114,6 +116,7 @@ system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ + ./modules/networking.nix ./configuration.nix { services.xserver.videoDrivers = [ "modesetting" "displaylink" ]; networking.hostName = "starscream"; @@ -136,6 +139,7 @@ system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ + ./modules/networking.nix ./configuration.nix { services.xserver.videoDrivers = [ "modesetting" "displaylink" ]; boot.loader.efi.canTouchEfiVariables = true; diff --git a/modules/networking.nix b/modules/networking.nix new file mode 100644 index 0000000..025dfb7 --- /dev/null +++ b/modules/networking.nix @@ -0,0 +1,8 @@ + + # Enable networking + networking.networkmanager.enable = true; + networking.wireless.iwd = { + enable = true; + settings.General.EnableNetworkConfiguration = true; + }; +