From 4ef52b82265b25f40a05347bc832b5db9070fe6d Mon Sep 17 00:00:00 2001 From: mir Date: Tue, 27 Feb 2024 09:51:13 -0900 Subject: [PATCH] separate hostnames into flake --- configuration.nix | 2 +- flake.nix | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 54b142a..0308a7f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -18,7 +18,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "starscream"; # Define your hostname. + # networking.hostName = "starscream"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary diff --git a/flake.nix b/flake.nix index a4cb141..6d5a410 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,9 @@ starscream = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - ./configuration.nix + ./configuration.nix { + networking.hostname = "starscream"; + }; ./hardware/starscream-hw.nix home-manager.nixosModules.home-manager { @@ -26,7 +28,9 @@ knockout = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - ./configuration.nix + ./configuration.nix { + networking.hostname = "knockout"; + }; ./hardware/knockout-hw.nix home-manager.nixosModules.home-manager {