extract domain name to flake and pass down with special args
This commit is contained in:
parent
3e2fce475b
commit
1da3624a02
2 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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; };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue