Defcon configuration

This commit is contained in:
Filippo Berto 2021-08-08 03:48:52 +02:00
parent 2de99da8e7
commit 572a496704
9 changed files with 75 additions and 17 deletions

View file

@ -7,6 +7,7 @@
./laptop.nix
./pentablet.nix
./pro_audio.nix
./defcon.nix
];
# Use the systemd-boot EFI boot loader.
@ -115,6 +116,7 @@
extraGroups = [
"audio"
"input"
"docker"
"libvirtd"
"network"
"usb"
@ -223,7 +225,13 @@
services.clamav = { daemon.enable = true; updater.enable = true; };
# Virtualisation
virtualisation = { kvmgt.enable = true; libvirtd.enable = true; podman.enable = true; };
virtualisation = {
kvmgt.enable = true;
libvirtd.enable = true;
podman.enable = true;
virtualbox.host.enable = true;
docker.enable = true;
};
# Allow completion for system packages
environment.pathsToLink = [ "/share/zsh" ];
@ -243,5 +251,4 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.05"; # Did you read the comment?
}

13
nixos/defcon.nix Normal file
View file

@ -0,0 +1,13 @@
{ ... }:
{
networking.hosts = {
"54.176.11.243" = [ "vpn.mhackeroni.it" ];
"10.100.0.50" = [ "master.cb.cloud.mhackeroni.it" "bartender.cb.cloud.mhackeroni.it" "grafana.cb.cloud.mhackeroni.it" "menu.cb.cloud.mhackeroni.it" "maitre.cb.cloud.mhackeroni.it" "accountant.cb.cloud.mhackeroni.it" ];
"10.100.0.150" = [ "flowgui.cloud.mhackeroni.it" "smb.cloud.mhackeroni.it" ];
"10.100.0.200" = [ "tunniceddu.cloud.mhackeroni.it" ];
"10.100.0.250" = [ "rev.cloud.mhackeroni.it" ];
"10.100.0.66" = [ "attackerbackup.cloud.mhackeroni.it" ];
"192.168.128.1" = [ "smb.hotel.mhackeroni.it" "rev.hotel.mhackeroni.it" ];
};
}