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, config,
pkgs, pkgs,
domainName,
... ...
}: }:
let
domainName = "yisroelbaum.com";
in
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.

View file

@ -13,6 +13,7 @@
outputs = { self, nixpkgs, home-manager, ... }: outputs = { self, nixpkgs, home-manager, ... }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
domainName = "yisroelbaum.com";
in { in {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
modules = [ modules = [
@ -24,6 +25,7 @@
home-manager.users.yisroel = ./home-manager/home.nix; home-manager.users.yisroel = ./home-manager/home.nix;
} }
]; ];
specialArgs = { inherit domainName; };
}; };
devShells."${system}".default = let devShells."${system}".default = let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };