diff --git a/docs/admins/migrate.md b/docs/admins/migrate.md index 24db4284..41edc66d 100644 --- a/docs/admins/migrate.md +++ b/docs/admins/migrate.md @@ -83,13 +83,14 @@ Transitioning your existing setup to Clan Core is straightforward with these det ```nix outputs = { self, nixpkgs, clan-core }: let clan = clan-core.lib.buildClan { + specialArgs = { }; # Add arguments to every nix import in here directory = self; # Point this to the repository root. clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique. machines = { jons-desktop = { nixpkgs.hostPlatform = "x86_64-linux"; imports = [ - clan-core.clanModules.sshd ## Add openssh server for clan management + clan-core.clanModules.sshd # Add openssh server for clan management ./machines/jons-desktop/configuration.nix ]; }; @@ -186,12 +187,16 @@ such as the platform and specific Nix configurations. Update your `flake.nix` li inputs.clan-core.flakeModules.default ]; clan = { + specialArgs = { }; # Add arguments to every nix import in here clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique. directory = inputs.self; machines = { jons-desktop = { nixpkgs.hostPlatform = "x86_64-linux"; - imports = [ ./configuration.nix ]; + imports = [ + clan-core.clanModules.sshd # Add openssh server for clan management + ./configuration.nix + ]; }; }; }; diff --git a/templates/new-clan/flake.nix b/templates/new-clan/flake.nix index 879e4aaa..04ded52b 100644 --- a/templates/new-clan/flake.nix +++ b/templates/new-clan/flake.nix @@ -9,6 +9,7 @@ system = "x86_64-linux"; pkgs = clan-core.inputs.nixpkgs.legacyPackages.${system}; clan = clan-core.lib.buildClan { + specialArgs = { }; # Add arguments to every nix import in here directory = self; clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique. machines = { diff --git a/templates/new-clan/machines/jon/configuration.nix b/templates/new-clan/machines/jon/configuration.nix index 4f4aa69b..facb35d6 100644 --- a/templates/new-clan/machines/jon/configuration.nix +++ b/templates/new-clan/machines/jon/configuration.nix @@ -1,4 +1,4 @@ -{config, clan, lib, pkgs, ...}: +{ ... }: { -} \ No newline at end of file +} diff --git a/templates/new-clan/machines/sara/configuration.nix b/templates/new-clan/machines/sara/configuration.nix index 4f4aa69b..facb35d6 100644 --- a/templates/new-clan/machines/sara/configuration.nix +++ b/templates/new-clan/machines/sara/configuration.nix @@ -1,4 +1,4 @@ -{config, clan, lib, pkgs, ...}: +{ ... }: { -} \ No newline at end of file +}