separate hostnames into flake

This commit is contained in:
mir 2024-02-27 09:51:13 -09:00
parent 49a5923f06
commit 4ef52b8226
2 changed files with 7 additions and 3 deletions

View File

@ -18,7 +18,7 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = 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. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary # Configure network proxy if necessary

View File

@ -12,7 +12,9 @@
starscream = nixpkgs.lib.nixosSystem { starscream = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./configuration.nix ./configuration.nix {
networking.hostname = "starscream";
};
./hardware/starscream-hw.nix ./hardware/starscream-hw.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
@ -26,7 +28,9 @@
knockout = nixpkgs.lib.nixosSystem { knockout = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./configuration.nix ./configuration.nix {
networking.hostname = "knockout";
};
./hardware/knockout-hw.nix ./hardware/knockout-hw.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {