This commit is contained in:
XenGi 2025-12-29 16:54:28 +01:00
commit 9cbb528c2d
No known key found for this signature in database
6 changed files with 39 additions and 23 deletions

View file

@ -1,3 +1,5 @@
<img src="kubernauts.png" title="kubernauts" width="256" height="256">
# iac
Nix IaC

22
flake.lock generated
View file

@ -10,11 +10,11 @@
"systems": "systems"
},
"locked": {
"lastModified": 1754433428,
"narHash": "sha256-NA/FT2hVhKDftbHSwVnoRTFhes62+7dxZbxj5Gxvghs=",
"lastModified": 1762618334,
"narHash": "sha256-wyT7Pl6tMFbFrs8Lk/TlEs81N6L+VSybPfiIgzU8lbQ=",
"owner": "ryantm",
"repo": "agenix",
"rev": "9edb1787864c4f59ae5074ad498b6272b3ec308d",
"rev": "fcdea223397448d35d9b31f798479227e80183f6",
"type": "github"
},
"original": {
@ -86,33 +86,33 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1757810152,
"narHash": "sha256-Vp9K5ol6h0J90jG7Rm4RWZsCB3x7v5VPx588TQ1dkfs=",
"lastModified": 1764983851,
"narHash": "sha256-y7RPKl/jJ/KAP/VKLMghMgXTlvNIJMHKskl8/Uuar7o=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9a094440e02a699be5c57453a092a8baf569bdad",
"rev": "d9bc5c7dceb30d8d6fafa10aeb6aa8a48c218454",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-k8s": {
"locked": {
"lastModified": 1755247647,
"narHash": "sha256-7Yu6USLkeTh2nirvXCdBFrAWc1yGYDdFv2tvXKU14Po=",
"lastModified": 1763378238,
"narHash": "sha256-Q0rIDYv83RF5o5cm+JMCDAkWByNk8HMGgFDHjDTQc/I=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4acc7f1d238d2b4f5d86bc65ca9b703d802e6e02",
"rev": "c05d8d4121d466c8a57b81130ba8ae7551d4f769",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4acc7f1d238d2b4f5d86bc65ca9b703d802e6e02",
"rev": "c05d8d4121d466c8a57b81130ba8ae7551d4f769",
"type": "github"
}
},

16
hosts/kaede/default.nix Normal file
View file

@ -0,0 +1,16 @@
{ ... }:
{
virtualisation = {
useEFIBoot = true;
libvirtd = {
enable = true;
nss.enableGuest = true;
startDelay = 1;
onShutdown = "shutdown";
};
};
#rootDevice = "/dev/disk/by-label/nixos";
#mountHostNixStore = true;
}

BIN
kubernauts.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

View file

@ -51,18 +51,7 @@ let
in
{
"k8s" = mkSystem [
# ./configuration.nix
{
virtualisation = {
useEFIBoot = true;
libvirtd = {
enable = true;
nss.enableGuest = true;
startDelay = 1;
onShutdown = "shutdown";
};
};
}
# ./hosts/kaede/default,nix
];
"master-01" = mkControlPlaneNode [ ];
"master-02" = mkControlPlaneNode [ ];

9
services/etcd.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
services.etcd = {
enable = true
package = pkgs.etcd_3_6;
};
}