refactor: clean up flake outputs

This commit is contained in:
arcnmx 2024-02-02 11:00:00 -08:00
parent 437c83acc0
commit 7da0924d91
15 changed files with 233 additions and 203 deletions

View file

@ -1,4 +1,6 @@
{
inputs,
system,
config,
pkgs,
lib,
@ -10,6 +12,21 @@
kubeMasterHostname = "k8s.gensokyo.zone";
kubeMasterAPIServerPort = 6443;
in {
# apply fix: https://github.com/NixOS/nixpkgs/pull/275896
imports = let
pkiModulePath = "services/cluster/kubernetes/pki.nix";
inherit (inputs.self.legacyPackages.${system}) patchedNixpkgs;
in [
(_: {
imports = [
(patchedNixpkgs + "/nixos/modules/${pkiModulePath}")
];
disabledModules = [
pkiModulePath
];
})
];
# packages for administration tasks
environment.systemPackages = with pkgs; [
kompose