Replace lib/hosts.nix with an injected special argument containing the nix flake
This commit is contained in:
@@ -19,6 +19,14 @@
|
||||
generateNixosSystem = name: nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
({ ... }: {
|
||||
/*
|
||||
Make the contents of the flake availiable to modules.
|
||||
Useful for having the monitoring server scraping the
|
||||
target config from all other servers automatically.
|
||||
*/
|
||||
_module.args._nixfiles = self;
|
||||
})
|
||||
./configuration/common
|
||||
({ ... }: {
|
||||
nixpkgs.overlays = [
|
||||
|
Reference in New Issue
Block a user