From 8245579c8af73c8f40f5978878c7944c814ba04f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 24 Dec 2024 17:59:52 +0100 Subject: [WIP] --- hosts/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 hosts/default.nix (limited to 'hosts/default.nix') diff --git a/hosts/default.nix b/hosts/default.nix new file mode 100644 index 0000000..f7df5d3 --- /dev/null +++ b/hosts/default.nix @@ -0,0 +1,25 @@ +{ + pkgs, + nixLib, + nixpkgs, + specialArgs, + extraModules, +}: let + hosts = nixLib.mkByName { + useShards = false; + baseDirectory = ./by-name; + fileName = "configuration.nix"; + finalizeFunction = name: value: + nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + inherit specialArgs; + modules = + extraModules + ++ [ + ../modules + value + ]; + }; + }; +in + hosts -- cgit 1.4.1