fix hostname

This commit is contained in:
Satria 2026-02-28 17:54:42 +07:00
commit e00f12b5f1

View file

@ -26,7 +26,7 @@
nixosConfig = host: inputs.nixpkgs.lib.nixosSystem { nixosConfig = host: inputs.nixpkgs.lib.nixosSystem {
inherit pkgs; inherit pkgs;
specialArgs = args; specialArgs = args // { hostname = host; };
modules = [ modules = [
./hosts/${host}/config.nix ./hosts/${host}/config.nix
]; ];
@ -34,16 +34,14 @@
nixosConfigWithHome = host: inputs.nixpkgs.lib.nixosSystem { nixosConfigWithHome = host: inputs.nixpkgs.lib.nixosSystem {
inherit pkgs; inherit pkgs;
specialArgs = { specialArgs = args // { hostname = host; };
hostname = host;
} // args;
modules = [ modules = [
./hosts/${host}/config.nix ./hosts/${host}/config.nix
inputs.ctp.nixosModules.catppuccin inputs.ctp.nixosModules.catppuccin
inputs.hm.nixosModules.home-manager inputs.hm.nixosModules.home-manager
{ {
home-manager = { home-manager = {
extraSpecialArgs = args; extraSpecialArgs = args // { hostname = host; };
backupFileExtension = ".hm-backup"; backupFileExtension = ".hm-backup";
users.${args.username} = import ./hosts/${host}/home.nix; users.${args.username} = import ./hosts/${host}/home.nix;
sharedModules = [ inputs.ctp.homeModules.catppuccin ]; sharedModules = [ inputs.ctp.homeModules.catppuccin ];