Create a debugging role.
This commit is contained in:
33
nix/kubernetes/roles/debugging/default.nix
Normal file
33
nix/kubernetes/roles/debugging/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
options.me = {
|
||||
debugging.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
example = true;
|
||||
description = "Whether we want to install debugging.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.me.debugging.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
net-tools # for netstat
|
||||
tcpdump
|
||||
e2fsprogs # mkfs.ext4
|
||||
gptfdisk # cgdisk
|
||||
arp-scan # To find devices on the network
|
||||
ldns # for drill
|
||||
];
|
||||
|
||||
networking.firewall.enable = false; # TODO: This is just here for debugging / initial development.
|
||||
# TODO: Maybe use networking.nftables.enable to switch to nftables?
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user