From e00f12b5f1b92c728ee8fdb76a3b330fc7116419 Mon Sep 17 00:00:00 2001 From: Satria Date: Sat, 28 Feb 2026 17:54:42 +0700 Subject: [PATCH] fix hostname --- flake.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index a962113..ac41ba2 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,7 @@ nixosConfig = host: inputs.nixpkgs.lib.nixosSystem { inherit pkgs; - specialArgs = args; + specialArgs = args // { hostname = host; }; modules = [ ./hosts/${host}/config.nix ]; @@ -34,16 +34,14 @@ nixosConfigWithHome = host: inputs.nixpkgs.lib.nixosSystem { inherit pkgs; - specialArgs = { - hostname = host; - } // args; + specialArgs = args // { hostname = host; }; modules = [ ./hosts/${host}/config.nix inputs.ctp.nixosModules.catppuccin inputs.hm.nixosModules.home-manager { home-manager = { - extraSpecialArgs = args; + extraSpecialArgs = args // { hostname = host; }; backupFileExtension = ".hm-backup"; users.${args.username} = import ./hosts/${host}/home.nix; sharedModules = [ inputs.ctp.homeModules.catppuccin ];