From 5ce4ebf52202bcb6a5a0db345622064932bcf761 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 28 Sep 2022 15:33:49 -0400 Subject: [PATCH] fix: hostname for macos --- hosts/macbook/default.nix | 1 + modules/darwin/networking.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/macbook/default.nix b/hosts/macbook/default.nix index f828e70..8d58f1e 100644 --- a/hosts/macbook/default.nix +++ b/hosts/macbook/default.nix @@ -15,6 +15,7 @@ darwin.lib.darwinSystem { gui.enable = true; colorscheme = (import ../../modules/colorscheme/gruvbox); mailUser = globals.user; + networking.hostName = "noah-masur-mac"; nixpkgs.overlays = [ nur.overlay ]; # Set registry to flake packages, used for nix X commands nix.registry.nixpkgs.flake = nixpkgs; diff --git a/modules/darwin/networking.nix b/modules/darwin/networking.nix index 61fbc5f..9d72aff 100644 --- a/modules/darwin/networking.nix +++ b/modules/darwin/networking.nix @@ -2,7 +2,8 @@ networking = { computerName = "${config.fullName}'\\''s Mac"; - hostName = "${config.user}-mac"; + # Adjust if necessary + # hostName = ""; }; }