mu config
This commit is contained in:
parent
937f34cb53
commit
41aa87f8cc
|
@ -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
7
hosts/mu/fish.nix
Normal 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
7
hosts/mu/hosts.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
networking.hosts = {
|
||||
"127.0.0.1" = [
|
||||
# not in git
|
||||
];
|
||||
};
|
||||
}
|
28
hosts/mu/k9s.nix
Normal file
28
hosts/mu/k9s.nix
Normal 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
17
hosts/mu/packages.nix
Normal 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
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue