Defcon configuration
This commit is contained in:
parent
2de99da8e7
commit
572a496704
9 changed files with 75 additions and 17 deletions
9
custom/cocktail-bar-cli/default.nix
Normal file
9
custom/cocktail-bar-cli/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs, stdenv, autoPatchelfHook, ... }:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "cocktail-bar-cli";
|
||||||
|
version = "1.0";
|
||||||
|
src = /home/bertof/defcon/cli/cocktail-bar-cli;
|
||||||
|
dontUnpack = true;
|
||||||
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
installPhase = "install -m755 -D ${src} $out/bin/cocktail-bar-cli";
|
||||||
|
}
|
||||||
|
|
@ -7,6 +7,7 @@ let
|
||||||
self = {
|
self = {
|
||||||
lockscreen = callPackage ./lockscreen {};
|
lockscreen = callPackage ./lockscreen {};
|
||||||
update-background = callPackage ./update-background {};
|
update-background = callPackage ./update-background {};
|
||||||
|
cocktail-bar-cli = callPackage ./cocktail-bar-cli {};
|
||||||
# joystickwake = callPackage ./joystickwake {};
|
# joystickwake = callPackage ./joystickwake {};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
20
home.nix
20
home.nix
|
|
@ -10,10 +10,6 @@ let
|
||||||
onedark = import ./themes/onedark.nix;
|
onedark = import ./themes/onedark.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
fonts.fontconfig = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: { rice = (prev.lib.callPackageWith prev) nix-rice {}; }) # Custom library
|
(final: prev: { rice = (prev.lib.callPackageWith prev) nix-rice {}; }) # Custom library
|
||||||
(final: prev: (prev.lib.callPackageWith prev) ./custom/default.nix {}) # Custom packges
|
(final: prev: (prev.lib.callPackageWith prev) ./custom/default.nix {}) # Custom packges
|
||||||
|
|
@ -38,7 +34,14 @@ in
|
||||||
};
|
};
|
||||||
font = {
|
font = {
|
||||||
normal = { package = pkgs.cantarell-fonts; name = "Cantarell"; };
|
normal = { package = pkgs.cantarell-fonts; name = "Cantarell"; };
|
||||||
monospace = { package = pkgs.nerdfonts; name = "FuraCode Nerd Font Mono"; };
|
monospace = {
|
||||||
|
package = (
|
||||||
|
pkgs.nerdfonts.override {
|
||||||
|
fonts = [ "FiraCode" ];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
name = "FuraCode Nerd Font Mono";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
opacity = 0.9;
|
opacity = 0.9;
|
||||||
};
|
};
|
||||||
|
|
@ -101,7 +104,6 @@ in
|
||||||
megacmd
|
megacmd
|
||||||
mpv
|
mpv
|
||||||
neofetch
|
neofetch
|
||||||
nerdfonts
|
|
||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
obsidian
|
obsidian
|
||||||
openvpn
|
openvpn
|
||||||
|
|
@ -152,6 +154,7 @@ in
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./modules/configurations.nix
|
./modules/configurations.nix
|
||||||
|
./modules/fonts.nix
|
||||||
|
|
||||||
./modules/alacritty.nix
|
./modules/alacritty.nix
|
||||||
./modules/bash.nix
|
./modules/bash.nix
|
||||||
|
|
@ -178,7 +181,7 @@ in
|
||||||
./modules/libinput-gestures.nix
|
./modules/libinput-gestures.nix
|
||||||
./modules/lorri.nix
|
./modules/lorri.nix
|
||||||
./modules/man.nix
|
./modules/man.nix
|
||||||
./modules/mangohud.nix
|
# ./modules/mangohud.nix
|
||||||
# ./modules/nix-index.nix
|
# ./modules/nix-index.nix
|
||||||
./modules/noti.nix
|
./modules/noti.nix
|
||||||
./modules/obs-studio.nix
|
./modules/obs-studio.nix
|
||||||
|
|
@ -195,7 +198,7 @@ in
|
||||||
./modules/terminator.nix
|
./modules/terminator.nix
|
||||||
./modules/tmux.nix
|
./modules/tmux.nix
|
||||||
./modules/update_background.nix
|
./modules/update_background.nix
|
||||||
./modules/xidlehook.nix
|
# ./modules/xidlehook.nix
|
||||||
# ./modules/zathura.nix
|
# ./modules/zathura.nix
|
||||||
./modules/zoxide.nix
|
./modules/zoxide.nix
|
||||||
./modules/zsh.nix
|
./modules/zsh.nix
|
||||||
|
|
@ -204,6 +207,7 @@ in
|
||||||
./modules/security.nix
|
./modules/security.nix
|
||||||
|
|
||||||
./modules/shell_aliases.nix
|
./modules/shell_aliases.nix
|
||||||
|
./modules/security.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
||||||
12
modules/fonts.nix
Normal file
12
modules/fonts.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
fonts.fontconfig = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
dejavu_fonts
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-extra
|
||||||
|
noto-fonts-cjk
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -1,20 +1,22 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
nord = import ../configs/themes/nord.nix;
|
nord = import ../configs/themes/nord.nix;
|
||||||
in {
|
in
|
||||||
home.packages = [ pkgs.nerdfonts ];
|
{
|
||||||
|
home.packages = [ pkgs.rice.font.monospace.package ];
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
# font = pkgs.rice.font.monospace;
|
||||||
# font = {
|
# font = {
|
||||||
# package = pkgs.nerdfonts;
|
# package = pkgs.nerdfonts;
|
||||||
# name = "Fira Code Retina Nerd Font Complete";
|
# name = "Fira Code Retina Nerd Font Complete";
|
||||||
# size = 9;
|
# size = 9;
|
||||||
# };
|
# };
|
||||||
font = "FuraCode Nerd Font Mono 10";
|
font = "${pkgs.rice.font.monospace.name} 10";
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
backround_opacity = 0.95;
|
backround_opacity = 0.95;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,12 @@ let
|
||||||
ramp = [ "▂" "▃" "▄" "▅" "▆" "▇" ];
|
ramp = [ "▂" "▃" "▄" "▅" "▆" "▇" ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [ nerdfonts emojione noto-fonts-emoji material-design-icons ];
|
home.packages = with pkgs; [
|
||||||
|
pkgs.rice.font.monospace.package
|
||||||
|
emojione
|
||||||
|
noto-fonts-emoji
|
||||||
|
material-design-icons
|
||||||
|
];
|
||||||
services.polybar = {
|
services.polybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.polybarFull;
|
package = pkgs.polybarFull;
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,16 @@
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# WEB
|
# WEB
|
||||||
postman
|
altair
|
||||||
# burpsuite
|
burpsuite
|
||||||
httpie
|
httpie
|
||||||
|
|
||||||
# REVERSING
|
# REVERSING
|
||||||
ghidra-bin
|
ghidra-bin
|
||||||
|
radare2
|
||||||
|
cutter
|
||||||
|
|
||||||
|
# INFRASTRUCTURE
|
||||||
|
cocktail-bar-cli
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
./laptop.nix
|
./laptop.nix
|
||||||
./pentablet.nix
|
./pentablet.nix
|
||||||
./pro_audio.nix
|
./pro_audio.nix
|
||||||
|
./defcon.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
|
@ -115,6 +116,7 @@
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"audio"
|
"audio"
|
||||||
"input"
|
"input"
|
||||||
|
"docker"
|
||||||
"libvirtd"
|
"libvirtd"
|
||||||
"network"
|
"network"
|
||||||
"usb"
|
"usb"
|
||||||
|
|
@ -223,7 +225,13 @@
|
||||||
services.clamav = { daemon.enable = true; updater.enable = true; };
|
services.clamav = { daemon.enable = true; updater.enable = true; };
|
||||||
|
|
||||||
# Virtualisation
|
# 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
|
# Allow completion for system packages
|
||||||
environment.pathsToLink = [ "/share/zsh" ];
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
|
|
@ -243,5 +251,4 @@
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "21.05"; # Did you read the comment?
|
system.stateVersion = "21.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
13
nixos/defcon.nix
Normal file
13
nixos/defcon.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue