1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-26 07:43:45 +01:00

feat: extend gnome desktop, add hacking tools

This commit is contained in:
Thomas Boerger 2022-11-13 12:28:00 +01:00
parent b682805984
commit 82c0489b20
No known key found for this signature in database
GPG Key ID: 09745AFF9D63C79B
11 changed files with 147 additions and 50 deletions

@ -22,9 +22,6 @@
docker = { docker = {
enable = config.personal.services.enable; enable = config.personal.services.enable;
}; };
hacking = {
enable = config.personal.services.enable;
};
libvirt = { libvirt = {
enable = config.personal.services.enable; enable = config.personal.services.enable;
}; };

@ -24,8 +24,10 @@ with lib;
rsync rsync
s3cmd s3cmd
silver-searcher silver-searcher
tldr
tmux tmux
tree tree
unzip
vim vim
wget wget
yq yq

@ -9,7 +9,6 @@ with lib;
./coredns.nix ./coredns.nix
./desktop.nix ./desktop.nix
./docker.nix ./docker.nix
./hacking.nix
./hass.nix ./hass.nix
./haveged.nix ./haveged.nix
./libvirt.nix ./libvirt.nix

@ -1,35 +0,0 @@
{ pkgs, lib, config, options, ... }:
with lib;
let
cfg = config.personal.services.hacking;
in
{
options = {
personal = {
services = {
hacking = {
enable = mkEnableOption "Hacking";
};
};
};
};
config = mkIf cfg.enable {
environment = {
systemPackages = with pkgs; [
burpsuite
chisel
chkrootkit
john
lynis
metasploit
nikto
nmap
thc-hydra
wireshark
];
};
};
}

@ -126,6 +126,9 @@ in
autorandr = { autorandr = {
enable = desktop; enable = desktop;
}; };
hacking = {
enable = desktop;
};
ssh = { ssh = {
enable = desktop; enable = desktop;
}; };
@ -223,6 +226,10 @@ in
".wallpapers/tower.jpg" = { ".wallpapers/tower.jpg" = {
source = ./wallpapers/tower.jpg; source = ./wallpapers/tower.jpg;
}; };
".face" = {
source = ./face.jpg;
};
} else { }); } else { });
stateVersion = "18.09"; stateVersion = "18.09";

@ -40,15 +40,31 @@ in
}; };
gnome = { gnome = {
core-utilities = {
enable = true;
};
evolution-data-server = { evolution-data-server = {
enable = true; enable = true;
}; };
gnome-keyring = {
enable = true;
};
gnome-online-accounts = { gnome-online-accounts = {
enable = true; enable = true;
}; };
gnome-keyring = { gnome-remote-desktop = {
enable = true;
};
gnome-settings-daemon = {
enable = true;
};
sushi = {
enable = true; enable = true;
}; };
}; };
@ -63,6 +79,7 @@ in
gnomeExtensions.clipman gnomeExtensions.clipman
gnomeExtensions.ddterm gnomeExtensions.ddterm
gnomeExtensions.docker gnomeExtensions.docker
gnomeExtensions.espresso
gnomeExtensions.gsnap gnomeExtensions.gsnap
gnomeExtensions.gtile gnomeExtensions.gtile
gnomeExtensions.keyman gnomeExtensions.keyman
@ -74,16 +91,6 @@ in
gnome = { gnome = {
excludePackages = with pkgs; [ excludePackages = with pkgs; [
gnome-tour gnome-tour
gnome.atomix
gnome.cheese
gnome.epiphany
gnome.geary
gnome.gnome-music
gnome.gnome-terminal
gnome.hitori
gnome.iagno
gnome.tali
]; ];
}; };
}; };

BIN
profiles/thomas/face.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

@ -6,6 +6,7 @@
./autorandr.nix ./autorandr.nix
./dircolors.nix ./dircolors.nix
./git.nix ./git.nix
./hacking.nix
./ssh.nix ./ssh.nix
./starship.nix ./starship.nix
./vscode.nix ./vscode.nix

@ -0,0 +1,117 @@
{ pkgs, lib, config, options, ... }:
with lib;
let
cfg = config.profile.programs.hacking;
in
{
options = {
profile = {
programs = {
hacking = {
enable = mkEnableOption "Hacking";
};
};
};
};
config = mkIf cfg.enable {
networking = {
hosts = {
# "" = [ ".htb" ];
};
};
environment = {
systemPackages = with pkgs; [
burpsuite
chisel
chkrootkit
crunch
evil-winrm
ffuf
gobuster
inetutils
john
lynis
metasploit
nikto
nmap
openvpn
thc-hydra
wireshark
netcat-openbsd
python310Packages.impacket
python310Packages.netifaces
];
etc = {
"openvpn/thomas/hackthebox.ovpn" = {
user = "thomas";
group = "users";
source = config.age.secrets."users/thomas/hackthebox".path;
mode = "0600";
};
};
};
home-manager.users."${config.profile.username}" = { config, ... }: {
programs = {
zsh = {
shellAliases = {
"hackthebox-openvpn" = "sudo ${pkgs.openvpn}/bin/openvpn /etc/openvpn/thomas/hackthebox.ovpn";
};
};
};
home = {
file = {
# "Developer/hacking/responder" = {
# source = fetchFromGitHub {
# owner = "lgandx";
# repo = "Responder";
# rev = "9c303d7bd5b7d9cf2c2487075306f7877cf13d37";
# sha256 = "";
# };
# };
# "Developer/hacking/seclists" = {
# source = fetchFromGitHub {
# owner = "danielmiessler";
# repo = "SecLists";
# rev = "74a331a039532b8a6fd92af376cb0215a5dc0378";
# sha256 = "";
# };
# };
# "Developer/hacking/subdirectories" = {
# source = fetchFromGitHub {
# owner = "aels";
# repo = "subdirectories-discover";
# rev = "d6f4250560928e7bdcd31eb78cc3c0e76bb9d55f";
# sha256 = "";
# };
# };
# "Developer/hacking/dirbuster" = {
# source = fetchFromGitLab {
# owner = "kalilinux/packages";
# repo = "dirbuster";
# rev = "056bd88cbd0e1178f2cee43eef6865f8cde38a9c";
# sha256 = "";
# };
# };
# "Developer/wordlists/rockyou.txt" = {
# source = fetchurl {
# url = "https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txts";
# sha256 = "";
# };
# };
};
};
};
age.secrets."users/thomas/hackthebox" = {
file = ../../../secrets/users/thomas/hackthebox.age;
};
};
}

@ -27,4 +27,6 @@ in
"users/anna/password.age".publicKeys = users ++ systems; "users/anna/password.age".publicKeys = users ++ systems;
"users/adrian/password.age".publicKeys = users ++ systems; "users/adrian/password.age".publicKeys = users ++ systems;
"users/tabea/password.age".publicKeys = users ++ systems; "users/tabea/password.age".publicKeys = users ++ systems;
"users/thomas/hackthebox.age".publicKeys = users ++ systems;
} }

Binary file not shown.