forked from clan/clan-core
Improve documentation
This commit is contained in:
parent
91dddc2281
commit
6d8d211968
@ -83,13 +83,14 @@ Transitioning your existing setup to Clan Core is straightforward with these det
|
|||||||
```nix
|
```nix
|
||||||
outputs = { self, nixpkgs, clan-core }:
|
outputs = { self, nixpkgs, clan-core }:
|
||||||
let clan = clan-core.lib.buildClan {
|
let clan = clan-core.lib.buildClan {
|
||||||
|
specialArgs = { }; # Add arguments to every nix import in here
|
||||||
directory = self; # Point this to the repository root.
|
directory = self; # Point this to the repository root.
|
||||||
clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique.
|
clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique.
|
||||||
machines = {
|
machines = {
|
||||||
jons-desktop = {
|
jons-desktop = {
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
imports = [
|
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
|
./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
|
inputs.clan-core.flakeModules.default
|
||||||
];
|
];
|
||||||
clan = {
|
clan = {
|
||||||
|
specialArgs = { }; # Add arguments to every nix import in here
|
||||||
clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique.
|
clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique.
|
||||||
directory = inputs.self;
|
directory = inputs.self;
|
||||||
machines = {
|
machines = {
|
||||||
jons-desktop = {
|
jons-desktop = {
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
imports = [ ./configuration.nix ];
|
imports = [
|
||||||
|
clan-core.clanModules.sshd # Add openssh server for clan management
|
||||||
|
./configuration.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = clan-core.inputs.nixpkgs.legacyPackages.${system};
|
pkgs = clan-core.inputs.nixpkgs.legacyPackages.${system};
|
||||||
clan = clan-core.lib.buildClan {
|
clan = clan-core.lib.buildClan {
|
||||||
|
specialArgs = { }; # Add arguments to every nix import in here
|
||||||
directory = self;
|
directory = self;
|
||||||
clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique.
|
clanName = "__CHANGE_ME__"; # Ensure this is internet wide unique.
|
||||||
machines = {
|
machines = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{config, clan, lib, pkgs, ...}:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{config, clan, lib, pkgs, ...}:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user