1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 18:21:58 +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 = {
enable = config.personal.services.enable;
};
hacking = {
enable = config.personal.services.enable;
};
libvirt = {
enable = config.personal.services.enable;
};

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

@ -9,7 +9,6 @@ with lib;
./coredns.nix
./desktop.nix
./docker.nix
./hacking.nix
./hass.nix
./haveged.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 = {
enable = desktop;
};
hacking = {
enable = desktop;
};
ssh = {
enable = desktop;
};
@ -223,6 +226,10 @@ in
".wallpapers/tower.jpg" = {
source = ./wallpapers/tower.jpg;
};
".face" = {
source = ./face.jpg;
};
} else { });
stateVersion = "18.09";

@ -40,15 +40,31 @@ in
};
gnome = {
core-utilities = {
enable = true;
};
evolution-data-server = {
enable = true;
};
gnome-keyring = {
enable = true;
};
gnome-online-accounts = {
enable = true;
};
gnome-keyring = {
gnome-remote-desktop = {
enable = true;
};
gnome-settings-daemon = {
enable = true;
};
sushi = {
enable = true;
};
};
@ -63,6 +79,7 @@ in
gnomeExtensions.clipman
gnomeExtensions.ddterm
gnomeExtensions.docker
gnomeExtensions.espresso
gnomeExtensions.gsnap
gnomeExtensions.gtile
gnomeExtensions.keyman
@ -74,16 +91,6 @@ in
gnome = {
excludePackages = with pkgs; [
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
./dircolors.nix
./git.nix
./hacking.nix
./ssh.nix
./starship.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/adrian/password.age".publicKeys = users ++ systems;
"users/tabea/password.age".publicKeys = users ++ systems;
"users/thomas/hackthebox.age".publicKeys = users ++ systems;
}

Binary file not shown.