clan: Add autoloaded clanModules from flake inputs. Rename 'directory' to 'self' in buildClan

This commit is contained in:
Qubasa
2025-01-24 12:32:04 +07:00
parent 83c6ad19eb
commit ed6aaf5f0c
14 changed files with 70 additions and 33 deletions

View File

@@ -29,7 +29,7 @@
specialArgs.self = {
inherit (self) inputs nixosModules packages;
};
directory = self;
inherit self;
machines = {
# "jon" will be the hostname of the machine
jon =

View File

@@ -6,7 +6,7 @@
{ self, clan-core, ... }:
let
# Usage see: https://docs.clan.lol
clan = clan-core.lib.buildClan { directory = self; };
clan = clan-core.lib.buildClan { inherit self; };
in
{
# all machines managed by Clan

View File

@@ -9,7 +9,7 @@
let
# Usage see: https://docs.clan.lol
clan = clan-core.lib.buildClan {
directory = self;
inherit self;
# Ensure this is unique among all clans you want to use.
meta.name = "__CHANGE_ME__";