From 9f18da2782a22c0f84a4a16734903f6b54513dd3 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Fri, 27 Oct 2023 10:27:33 +0200 Subject: [PATCH] move networking files around --- server/configuration.nix | 3 --- server/flake.nix | 2 +- server/modules/networkmanager.nix | 3 +++ server/modules/{ip-server.nix => static-ip-server.nix} | 0 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 server/modules/networkmanager.nix rename server/modules/{ip-server.nix => static-ip-server.nix} (100%) diff --git a/server/configuration.nix b/server/configuration.nix index ffc7e5b..5475c55 100644 --- a/server/configuration.nix +++ b/server/configuration.nix @@ -20,9 +20,6 @@ in{ networking.hostName = "server"; # Define your hostname. - # Enable networking - #networking.networkmanager.enable = true; - # Set your time zone. time.timeZone = "Europe/Vienna"; diff --git a/server/flake.nix b/server/flake.nix index e4f4fd8..3cdb87e 100644 --- a/server/flake.nix +++ b/server/flake.nix @@ -9,7 +9,7 @@ nixosConfigurations.server = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - ./modules/ip-server.nix + ./modules/static-ip-server.nix ./configuration.nix ./modules/nix-settings.nix ./modules/adguard.nix diff --git a/server/modules/networkmanager.nix b/server/modules/networkmanager.nix new file mode 100644 index 0000000..15456c3 --- /dev/null +++ b/server/modules/networkmanager.nix @@ -0,0 +1,3 @@ +{ + networking.networkmanager.enable = true; +} diff --git a/server/modules/ip-server.nix b/server/modules/static-ip-server.nix similarity index 100% rename from server/modules/ip-server.nix rename to server/modules/static-ip-server.nix