From f90f83a30ec65cf34efb0ac8b445bb8d564a5689 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 3 May 2024 03:51:47 +0200 Subject: [PATCH] Define hostname within flake.nix --- flake.nix | 3 ++- system/default.nix | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index a059cb4..73dd123 100644 --- a/flake.nix +++ b/flake.nix @@ -98,12 +98,13 @@ specialArgs = { inherit username pkgs; - hostname = "Bacon"; }; modules = [ ./system ./hardware-configuration.nix + ] ++ [ + { networking.hostName = "Bacon"; } ] ++ [ home-manager.nixosModules.home-manager { diff --git a/system/default.nix b/system/default.nix index f21b7fd..0cec919 100644 --- a/system/default.nix +++ b/system/default.nix @@ -1,4 +1,4 @@ -{ config, username, hostname, pkgs, ... }: +{ config, username, pkgs, ... }: { imports = [ ./polkit.nix ]; @@ -38,7 +38,6 @@ nixpkgs.config.allowUnfree = true; networking = { - hostName = hostname; networkmanager.enable = true; firewall.enable = false; };