Compare commits
No commits in common. "2f6611998a054f04b07381f1a1208c5f62872631" and "81bc14dcb9b649451939a01d3828ca4c170dc897" have entirely different histories.
2f6611998a
...
81bc14dcb9
4 changed files with 75 additions and 183 deletions
22
README.md
22
README.md
|
|
@ -1,22 +0,0 @@
|
||||||
## Installing to a new machine
|
|
||||||
|
|
||||||
1. add the config
|
|
||||||
2. boot to installer iso on target host
|
|
||||||
3. gather the hardware information
|
|
||||||
4. create disk configuration
|
|
||||||
5. install system
|
|
||||||
|
|
||||||
m1
|
|
||||||
root
|
|
||||||
flatware-theorize-sleet
|
|
||||||
|
|
||||||
names
|
|
||||||
|
|
||||||
- foundry
|
|
||||||
- anvil
|
|
||||||
- cauldron
|
|
||||||
- bellows
|
|
||||||
- hammer
|
|
||||||
- strike
|
|
||||||
- temper
|
|
||||||
- quench
|
|
||||||
12
clan.nix
12
clan.nix
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
# Ensure this is unique among all clans you want to use.
|
# Ensure this is unique among all clans you want to use.
|
||||||
meta = {
|
meta = {
|
||||||
name = "amarth-infra";
|
name = "amarth";
|
||||||
description = "Amarth cloud";
|
description = "Amarth cloud";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -43,15 +43,6 @@
|
||||||
roles.peer.tags.all = { };
|
roles.peer.tags.all = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
zitadel = {
|
|
||||||
module = {
|
|
||||||
name = "@amarth/zitadel";
|
|
||||||
input = "amarth-services";
|
|
||||||
};
|
|
||||||
|
|
||||||
roles.controller.machines."m1" = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
k3s = {
|
k3s = {
|
||||||
module = {
|
module = {
|
||||||
name = "@amarth/k3s";
|
name = "@amarth/k3s";
|
||||||
|
|
@ -62,7 +53,6 @@
|
||||||
|
|
||||||
roles.agent.machines."c2" = {};
|
roles.agent.machines."c2" = {};
|
||||||
roles.agent.machines."c3" = {};
|
roles.agent.machines."c3" = {};
|
||||||
>>>>>>> 81bc14dcb9b649451939a01d3828ca4c170dc897
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
117
flake.lock
generated
117
flake.lock
generated
|
|
@ -1,27 +1,27 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"amarth-services": {
|
"amarth": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"clan-core": "clan-core",
|
"clan-core": "clan-core",
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"clan-core",
|
"clan-core",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758130572,
|
"lastModified": 1758024845,
|
||||||
"narHash": "sha256-OB5KCrv3X1x2aTT9tE/6w2H/FD8EZurh7debKLtDyBM=",
|
"narHash": "sha256-aMhb+b0LA3IxoaXJ+5YoGSs5mf/N18z+/tj+NjASTmU=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "7e0a5243647dceeb09ff3095938282370f4047d4",
|
"rev": "ceed1a0cdf5b72c290ad5e060f8a68539847df67",
|
||||||
"revCount": 10,
|
"revCount": 8,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.amarth.cloud/amarth/services"
|
"url": "https://git.amarth.cloud/amarth/services.git"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.amarth.cloud/amarth/services"
|
"url": "https://git.amarth.cloud/amarth/services.git"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"clan-core": {
|
"clan-core": {
|
||||||
|
|
@ -53,25 +53,21 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"data-mesher": "data-mesher_2",
|
"data-mesher": "data-mesher_2",
|
||||||
"disko": "disko_2",
|
"disko": "disko_2",
|
||||||
"flake-parts": [
|
"flake-parts": "flake-parts_3",
|
||||||
"flake-parts"
|
|
||||||
],
|
|
||||||
"nix-darwin": "nix-darwin_2",
|
"nix-darwin": "nix-darwin_2",
|
||||||
"nix-select": "nix-select_2",
|
"nix-select": "nix-select_2",
|
||||||
"nixos-facter-modules": "nixos-facter-modules_2",
|
"nixos-facter-modules": "nixos-facter-modules_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"sops-nix": "sops-nix_2",
|
"sops-nix": "sops-nix_2",
|
||||||
"systems": "systems_2",
|
"systems": "systems_2",
|
||||||
"treefmt-nix": "treefmt-nix_2"
|
"treefmt-nix": "treefmt-nix_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758121565,
|
"lastModified": 1758021280,
|
||||||
"narHash": "sha256-y37cz5A+EFMBvWi0/S+wrkTMHGQnDb7cifqZoIfSRHE=",
|
"narHash": "sha256-tnXjO1KpfFRKqe9tPZ5ZrM6O2E1DG2nJiE0QKJACPG8=",
|
||||||
"rev": "b7798f54666fe61d8b16b5c45c39fac97e2d2e60",
|
"rev": "f2134754c5f0fdca982487de82a16428021a0e0e",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://git.clan.lol/api/v1/repos/clan/clan-core/archive/b7798f54666fe61d8b16b5c45c39fac97e2d2e60.tar.gz"
|
"url": "https://git.clan.lol/api/v1/repos/clan/clan-core/archive/f2134754c5f0fdca982487de82a16428021a0e0e.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
@ -81,17 +77,17 @@
|
||||||
"data-mesher": {
|
"data-mesher": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": [
|
"flake-parts": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"clan-core",
|
"clan-core",
|
||||||
"flake-parts"
|
"flake-parts"
|
||||||
],
|
],
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"clan-core",
|
"clan-core",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"treefmt-nix": [
|
"treefmt-nix": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"clan-core",
|
"clan-core",
|
||||||
"treefmt-nix"
|
"treefmt-nix"
|
||||||
]
|
]
|
||||||
|
|
@ -135,28 +131,10 @@
|
||||||
"url": "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz"
|
"url": "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devshell": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1741473158,
|
|
||||||
"narHash": "sha256-kWNaq6wQUbUMlPgw8Y+9/9wP0F8SHkjy24/mN3UAppg=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "devshell",
|
|
||||||
"rev": "7c9e793ebe66bcba8292989a68c0419b737a22a0",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "devshell",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"disko": {
|
"disko": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"clan-core",
|
"clan-core",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
|
@ -199,7 +177,7 @@
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"clan-core",
|
"clan-core",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
|
@ -221,7 +199,7 @@
|
||||||
"flake-parts_2": {
|
"flake-parts_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -242,6 +220,7 @@
|
||||||
"flake-parts_3": {
|
"flake-parts_3": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
|
"clan-core",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -262,7 +241,7 @@
|
||||||
"nix-darwin": {
|
"nix-darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"clan-core",
|
"clan-core",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
|
@ -289,11 +268,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758102940,
|
"lastModified": 1757430124,
|
||||||
"narHash": "sha256-wwqf3+A8EiqwWpcAaPN20QXJLlpGPpwtLTrzgnngI2o=",
|
"narHash": "sha256-MhDltfXesGH8VkGv3hmJ1QEKl1ChTIj9wmGAFfWj/Wk=",
|
||||||
"owner": "nix-darwin",
|
"owner": "nix-darwin",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "ebd0bfc11fc2b5cff37401e9b3703881ad5fabbd",
|
"rev": "830b3f0b50045cf0bcfd4dab65fad05bf882e196",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -373,49 +352,31 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722073938,
|
"lastModified": 315532800,
|
||||||
"narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=",
|
"narHash": "sha256-h8Sx4S+/0FpodZji6W9lHzwY5BcuUG85Aj3GfhvGC2o=",
|
||||||
"owner": "NixOS",
|
"rev": "a650b5d0de99158323597f048667c4d914243224",
|
||||||
"repo": "nixpkgs",
|
"type": "tarball",
|
||||||
"rev": "e36e9f57337d0ff0cf77aceb58af4c805472bfae",
|
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre845298.a650b5d0de99/nixexprs.tar.xz"
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1757745802,
|
|
||||||
"narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "c23193b943c6c689d70ee98ce3128239ed9e32d1",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"amarth-services": "amarth-services",
|
"amarth": "amarth",
|
||||||
"clan-core": "clan-core_2",
|
"clan-core": "clan-core_2",
|
||||||
"devshell": "devshell",
|
"nixpkgs": [
|
||||||
"flake-parts": "flake-parts_3",
|
"clan-core",
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"clan-core",
|
"clan-core",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
|
@ -488,7 +449,7 @@
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"amarth-services",
|
"amarth",
|
||||||
"clan-core",
|
"clan-core",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
|
|
||||||
107
flake.nix
107
flake.nix
|
|
@ -1,81 +1,44 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
||||||
|
|
||||||
flake-parts = {
|
nixpkgs.follows = "clan-core/nixpkgs";
|
||||||
url = "github:hercules-ci/flake-parts";
|
|
||||||
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
clan-core = {
|
amarth.url = "git+https://git.amarth.cloud/amarth/services.git";
|
||||||
url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
inputs.flake-parts.follows = "flake-parts";
|
|
||||||
};
|
|
||||||
|
|
||||||
devshell = {
|
|
||||||
url = "github:numtide/devshell";
|
|
||||||
};
|
|
||||||
|
|
||||||
amarth-services = {
|
|
||||||
url = "git+https://git.amarth.cloud/amarth/services";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ flake-parts, ... }:
|
{
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } ({ self, pkgs, ... }: {
|
self,
|
||||||
systems = [
|
clan-core,
|
||||||
"x86_64-linux"
|
nixpkgs,
|
||||||
];
|
...
|
||||||
|
}@inputs:
|
||||||
imports = [
|
let
|
||||||
inputs.clan-core.flakeModules.default
|
# Usage see: https://docs.clan.lol
|
||||||
inputs.devshell.flakeModule
|
clan = clan-core.lib.clan {
|
||||||
./clan.nix
|
inherit self;
|
||||||
];
|
imports = [ ./clan.nix ];
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
perSystem = { system, ... }: {
|
|
||||||
devshells = {
|
|
||||||
default = {
|
|
||||||
packages = [ inputs.clan-core.packages.${system}.clan-cli ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
});
|
in
|
||||||
|
{
|
||||||
# outputs =
|
inherit (clan.config) nixosConfigurations nixosModules clanInternals;
|
||||||
# {
|
clan = clan.config;
|
||||||
# self,
|
# Add the Clan cli tool to the dev shell.
|
||||||
# clan-core,
|
# Use "nix develop" to enter the dev shell.
|
||||||
# nixpkgs,
|
devShells =
|
||||||
# ...
|
nixpkgs.lib.genAttrs
|
||||||
# }@inputs:
|
[
|
||||||
# let
|
"x86_64-linux"
|
||||||
# # Usage see: https://docs.clan.lol
|
"aarch64-linux"
|
||||||
# clan = clan-core.lib.clan {
|
"aarch64-darwin"
|
||||||
# inherit self;
|
"x86_64-darwin"
|
||||||
# imports = [ ./clan.nix ];
|
]
|
||||||
# specialArgs = { inherit inputs; };
|
(system: {
|
||||||
# };
|
default = clan-core.inputs.nixpkgs.legacyPackages.${system}.mkShell {
|
||||||
# in
|
packages = [ clan-core.packages.${system}.clan-cli ];
|
||||||
# {
|
};
|
||||||
# inherit (clan.config) nixosConfigurations nixosModules clanInternals;
|
});
|
||||||
# clan = clan.config;
|
};
|
||||||
# # Add the Clan cli tool to the dev shell.
|
|
||||||
# # Use "nix develop" to enter the dev shell.
|
|
||||||
# devShells =
|
|
||||||
# nixpkgs.lib.genAttrs
|
|
||||||
# [
|
|
||||||
# "x86_64-linux"
|
|
||||||
# "aarch64-linux"
|
|
||||||
# "aarch64-darwin"
|
|
||||||
# "x86_64-darwin"
|
|
||||||
# ]
|
|
||||||
# (system: {
|
|
||||||
# default = clan-core.inputs.nixpkgs.legacyPackages.${system}.mkShell {
|
|
||||||
# packages = [ clan-core.packages.${system}.clan-cli ];
|
|
||||||
# };
|
|
||||||
# });
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue