split some networking into file

This commit is contained in:
Miranda Marquez 2024-03-26 19:48:00 -08:00
parent 6da14f080d
commit 1c4df6655d
3 changed files with 13 additions and 6 deletions

View File

@ -11,12 +11,7 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.extra-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. # Set your time zone.
time.timeZone = "America/Anchorage"; time.timeZone = "America/Anchorage";

View File

@ -63,6 +63,7 @@
system = "aarch64-linux"; system = "aarch64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./modules/networking.nix
./configuration.nix { ./configuration.nix {
services.xserver.videoDrivers = [ "modesetting" ]; services.xserver.videoDrivers = [ "modesetting" ];
boot.binfmt.emulatedSystems = ["x86_64-linux"]; boot.binfmt.emulatedSystems = ["x86_64-linux"];
@ -92,6 +93,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./modules/networking.nix
./configuration.nix { ./configuration.nix {
networking.hostName = "breakdown"; networking.hostName = "breakdown";
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@ -114,6 +116,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./modules/networking.nix
./configuration.nix { ./configuration.nix {
services.xserver.videoDrivers = [ "modesetting" "displaylink" ]; services.xserver.videoDrivers = [ "modesetting" "displaylink" ];
networking.hostName = "starscream"; networking.hostName = "starscream";
@ -136,6 +139,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./modules/networking.nix
./configuration.nix { ./configuration.nix {
services.xserver.videoDrivers = [ "modesetting" "displaylink" ]; services.xserver.videoDrivers = [ "modesetting" "displaylink" ];
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;

8
modules/networking.nix Normal file
View File

@ -0,0 +1,8 @@
# Enable networking
networking.networkmanager.enable = true;
networking.wireless.iwd = {
enable = true;
settings.General.EnableNetworkConfiguration = true;
};