Skip to content

Instantly share code, notes, and snippets.

@zarelit
Last active April 30, 2023 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zarelit/003a1c1e46e9222d211022d0663eba9d to your computer and use it in GitHub Desktop.
Save zarelit/003a1c1e46e9222d211022d0663eba9d to your computer and use it in GitHub Desktop.
nix module "generator" with param
{ config, pkgs, ...}:
{
imports =
[
(import ./modules/testparam.nix { name = "beautifulname"; })
];
}
{ name }: { ... }: {
networking.hosts = {
"127.0.0.1" = [ name ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment