move system config to seperate file
This commit is contained in:
parent
af760745d0
commit
756d4347fd
2 changed files with 82 additions and 43 deletions
54
flake.nix
54
flake.nix
|
|
@ -8,16 +8,24 @@
|
|||
url = "github:ryantm/agenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# k8nix = {
|
||||
# url = "gitlab:luxzeitlos/k8nix/develop";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
# };
|
||||
};
|
||||
outputs =
|
||||
{
|
||||
inputs@{
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-k8s,
|
||||
flake-utils,
|
||||
agenix,
|
||||
# k8nix,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
{
|
||||
nixosConfigurations = (import ./nixosConfigurations.nix inputs);
|
||||
}
|
||||
// flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
|
@ -29,8 +37,7 @@
|
|||
packages = with pkgs; [
|
||||
agenix.packages.${system}.default
|
||||
gnumake
|
||||
kubectl
|
||||
kubernetes-helm
|
||||
pkgs-k8s.kubectl
|
||||
cfssl
|
||||
|
||||
# debugging
|
||||
|
|
@ -39,45 +46,6 @@
|
|||
openssl
|
||||
];
|
||||
};
|
||||
# Dell R630
|
||||
nixosConfigurations."k8s" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
agenix.nixosModules.default
|
||||
{ environment.systemPackages = [ agenix.packages.${system}.default ]; }
|
||||
{
|
||||
age.secrets = {
|
||||
#etcd-root-crt = {
|
||||
# file = ./secrets/etcd-root-crt.age;
|
||||
# mode = "444";
|
||||
# owner = "root";
|
||||
# group = "root";
|
||||
#};
|
||||
#k8s-root-crt = {
|
||||
# file = ./secrets/k8s-root-crt.age;
|
||||
# mode = "444";
|
||||
# owner = "root";
|
||||
# group = "root";
|
||||
#};
|
||||
};
|
||||
}
|
||||
./configuration.nix
|
||||
{
|
||||
virtualisation = {
|
||||
useEFIBoot = true;
|
||||
libvirtd.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
#./services/etcd.nix
|
||||
#./services/k8s.nix
|
||||
#./services/k8s-apiserver.nix
|
||||
#./services/k8s-controller-manager.nix
|
||||
#./services/k8s-kubelet.nix
|
||||
#./services/k8s-proxy.nix
|
||||
#./services/k8s-scheduler.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue