extract domain name to flake and pass down with special args

This commit is contained in:
Yisroel Baum 2026-04-09 10:52:25 +03:00
parent 3e2fce475b
commit 1da3624a02
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 3 additions and 3 deletions

View file

@ -1,11 +1,9 @@
{
config,
pkgs,
domainName,
...
}:
let
domainName = "yisroelbaum.com";
in
{
imports =
[ # Include the results of the hardware scan.

View file

@ -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; };