Fix hostnames

This commit is contained in:
Kiana Sheibani 2022-01-06 22:17:01 -05:00
parent b8e127818a
commit f594497bf0
6 changed files with 14 additions and 7 deletions

View file

@ -18,7 +18,6 @@ in {
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "kiana-pc"; # Define your hostname.
networking.wireless.enable = true; networking.wireless.enable = true;
networking.wireless.networks = { networking.wireless.networks = {
"NETGEAR97".psk = "pastelcello694"; "NETGEAR97".psk = "pastelcello694";

View file

@ -3,4 +3,6 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
networking.hostName = "kiana-desktop";
} }

View file

@ -1,2 +1,4 @@
{ ... }: { ... }:
{} {
imports = [ ../../common/home-manager ];
}

View file

@ -19,7 +19,7 @@ outputs = { self,
lib = nixpkgs.lib; lib = nixpkgs.lib;
in { in {
nixosConfigurations = { nixosConfigurations = {
"desktop" = lib.makeOverridable lib.nixosSystem { "kiana-desktop" = lib.makeOverridable lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
{ _module.args = moduleArgs; } { _module.args = moduleArgs; }
@ -35,10 +35,10 @@ outputs = { self,
]; ];
}; };
"laptop" = lib.makeOverridable lib.nixosSystem { "kiana-laptop" = lib.makeOverridable lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
{ _module.args = moduleArgs } { _module.args = moduleArgs; }
./common/config ./common/config
./laptop/config ./laptop/config
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View file

@ -1,2 +1,4 @@
{ ... }: { ... }:
{} {
networking.hostName = "kiana-laptop";
}

View file

@ -1,2 +1,4 @@
{ ... }: { ... }:
{} {
imports = [ ../../common/home-manager ];
}