mu config

This commit is contained in:
Casper V. Kristensen 2023-10-08 17:51:37 +02:00
parent 937f34cb53
commit 41aa87f8cc
5 changed files with 63 additions and 0 deletions

View file

@ -1,6 +1,10 @@
{ ... }: {
imports = [
./hardware.nix
./fish.nix
./hosts.nix
./k9s.nix
./packages.nix
./sway.nix
../../overlays
../../modules/base

7
hosts/mu/fish.nix Normal file
View file

@ -0,0 +1,7 @@
{ home-manager, ... }: {
home-manager.users.caspervk = {
programs.fish.shellAliases = {
sm = "gcloud --project magenta-os2mo-production compute ssh --tunnel-through-iap saltmaster";
};
};
}

7
hosts/mu/hosts.nix Normal file
View file

@ -0,0 +1,7 @@
{ ... }: {
networking.hosts = {
"127.0.0.1" = [
# not in git
];
};
}

28
hosts/mu/k9s.nix Normal file
View file

@ -0,0 +1,28 @@
{ home-manager, pkgs, ... }: {
home-manager.users.caspervk = {
programs.k9s = {
enable = true;
settings = {
k9s = {
refreshRate = 1;
logger = {
tail = 500;
sinceSeconds = -1;
textWrap = true;
showTime = true;
};
};
};
};
};
# Allow port-forward to 443
security.wrappers = {
k9s = {
source = "${pkgs.k9s}/bin/k9s";
owner = "root";
group = "root";
capabilities = "cap_net_bind_service+ep";
};
};
}

17
hosts/mu/packages.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
azure-cli
fluxcd
(google-cloud-sdk.withExtraComponents [
google-cloud-sdk.components.gke-gcloud-auth-plugin
])
kind
kubectl
kubernetes-helm
kustomize
poetry
pre-commit
sops
terraform
];
}