Remove hostname variable

This commit is contained in:
Oliver Davies 2024-02-29 23:23:57 +00:00
parent ec4a091991
commit 2c088442a1
4 changed files with 10 additions and 16 deletions

View file

@ -39,15 +39,8 @@
lib = import ./lib {inherit inputs;}; lib = import ./lib {inherit inputs;};
nixosConfigurations = { nixosConfigurations = {
apollo = mkNixos { apollo = mkNixos {desktop = true;};
desktop = true; nixedo = mkNixos {desktop = true;};
hostname = "apollo";
};
nixedo = mkNixos {
desktop = true;
hostname = "nixedo";
};
}; };
homeConfigurations = { homeConfigurations = {

View file

@ -4,11 +4,14 @@ _default:
check: check:
nix flake check nix flake check
nixos-build profile: nixos-build:
sudo nixos-rebuild build --flake ".#{{ profile }}" sudo nixos-rebuild build --flake .
nixos-switch profile: nixos-switch profile:
sudo nixos-rebuild switch --flake ".#{{ profile }}" sudo nixos-rebuild switch --flake .
nixos-test profile:
sudo nixos-rebuild test --flake .
update: update:
nix flake update nix flake update

View file

@ -1,7 +1,6 @@
{ {
inputs, inputs,
desktop ? false, desktop ? false,
hostname,
pkgs, pkgs,
system, system,
}: let }: let
@ -36,7 +35,7 @@ in {
DefaultTimeoutStopSec=10s DefaultTimeoutStopSec=10s
''; '';
networking.hostName = hostname; # networking.hostName = hostname;
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary # Configure network proxy if necessary

View file

@ -6,9 +6,8 @@
username, username,
}: { }: {
desktop ? false, desktop ? false,
hostname,
}: let }: let
configuration = import ./configuration.nix {inherit desktop hostname inputs pkgs system;}; configuration = import ./configuration.nix {inherit desktop inputs pkgs system;};
hardwareConfiguration = import ./hardware-configuration.nix; hardwareConfiguration = import ./hardware-configuration.nix;
in in
inputs.nixpkgs.lib.nixosSystem { inputs.nixpkgs.lib.nixosSystem {