diff --git a/flake.nix b/flake.nix index 28de1ae..2687866 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,15 @@ flake = { nixosConfigurations = { - nixedo = nixos-system { desktop = true; }; + apollo = nixos-system { + desktop = true; + hostname = "apollo"; + }; + + nixedo = nixos-system { + desktop = true; + hostname = "nixedo"; + }; }; homeConfigurations = { diff --git a/system/nixos/configuration.nix b/system/nixos/configuration.nix index 090b50f..2b6b3ab 100644 --- a/system/nixos/configuration.nix +++ b/system/nixos/configuration.nix @@ -1,4 +1,4 @@ -{ inputs, desktop ? false, pkgs, system }: +{ inputs, desktop ? false, hostname, pkgs, system }: let pkgsUnstable = inputs.nixpkgs-unstable.legacyPackages."${system}"; @@ -37,7 +37,7 @@ in DefaultTimeoutStopSec=10s ''; - # networking.hostName = "nixedo"; # Define your hostname. + networking.hostName = hostname; # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary diff --git a/system/nixos/default.nix b/system/nixos/default.nix index 4a4f96e..7f79f2e 100644 --- a/system/nixos/default.nix +++ b/system/nixos/default.nix @@ -1,9 +1,9 @@ { inputs, pkgs, self, system, username }: -{ desktop ? false }: +{ desktop ? false, hostname }: let - configuration = import ./configuration.nix { inherit desktop inputs pkgs system; }; + configuration = import ./configuration.nix { inherit desktop hostname inputs pkgs system; }; hardware-configuration = import ./hardware-configuration.nix; in inputs.nixpkgs.lib.nixosSystem {