1
0
forked from clan/clan-infra

web01: use clan flake-parts module

This commit is contained in:
Jörg Thalheim 2024-07-15 14:06:07 +02:00
parent c93f912ad7
commit e2be04ddba
2 changed files with 5 additions and 6 deletions

View File

@ -47,6 +47,7 @@
"aarch64-linux"
];
imports = [
inputs.clan-core.flakeModules.default
inputs.treefmt-nix.flakeModule
./devShells/flake-module.nix
./targets/flake-module.nix

View File

@ -1,16 +1,14 @@
{ self, inputs, ... }:
{
flake = inputs.clan-core.lib.buildClan {
clan = {
meta.name = "infra";
directory = self;
# Make flake available in modules
specialArgs.self = {
inherit (self) inputs nixosModules packages;
};
machines = {
web01 = {
imports = [ (./web01/configuration.nix) ];
};
directory = self;
machines.web01 = {
imports = [ ./web01/configuration.nix ];
};
};
}