From 1da3624a02bd206ca9e1c80204b50f6aeab50c2a Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Thu, 9 Apr 2026 10:52:25 +0300 Subject: [PATCH] extract domain name to flake and pass down with special args --- configuration.nix | 4 +--- flake.nix | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index a162aa4..a0145d5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,11 +1,9 @@ { config, pkgs, + domainName, ... }: -let - domainName = "yisroelbaum.com"; -in { imports = [ # Include the results of the hardware scan. diff --git a/flake.nix b/flake.nix index e8ba059..f90fcd3 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,7 @@ outputs = { self, nixpkgs, home-manager, ... }: let system = "x86_64-linux"; + domainName = "yisroelbaum.com"; in { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { modules = [ @@ -24,6 +25,7 @@ home-manager.users.yisroel = ./home-manager/home.nix; } ]; + specialArgs = { inherit domainName; }; }; devShells."${system}".default = let pkgs = import nixpkgs { inherit system; };