set flake for hostname

This commit is contained in:
Noah Masur 2022-05-05 09:21:34 -04:00
parent 01c5f09f41
commit 531c78ebe0
3 changed files with 6 additions and 4 deletions

View File

@ -41,4 +41,4 @@ python: brews
nix:
git add -A
doas nixos-rebuild build --flake ".#desktop"
doas nixos-rebuild switch --flake .

View File

@ -37,6 +37,7 @@
};
modules = [
home-manager.nixosModules.home-manager
{ networking.hostName = "desktop"; }
./hosts/desktop/hardware-configuration.nix
./modules/common.nix
./modules/desktop

View File

@ -1,7 +1,8 @@
{ identity, ... }: {
{ ... }: {
networking.hostName = identity.hostname; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.wireless.enable =
true; # Enables wireless support via wpa_supplicant.
networking.wireless.userControlled.enable = true;
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config