repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
default.nixNix53 lines2.7 KiBraw download
# modules/home/default.nix — the user's home-manager configuration: every
# home module in this directory, by name. Imported by the NixOS side in
# modules/features/home-manager.nix (home-manager runs as a NixOS module;
# `nh os switch` applies it, there is no standalone profile).
{ self, ... }:
{
  flake.homeModules.daemonsec =
  { user, ... }:
  {
    imports = with self.homeModules; [
      hyprland # compositor config (Lua) and the carried shortcuts — only with daemon.desktop.hyprland
      caelestia # programs.caelestia, shell.json, the Rosé Pine scheme — only with daemon.desktop.hyprland
      noctalia-plugins # Noctalia registry plugins in ~/.config/noctalia/plugins — only with daemon.desktop.niri
      session # polkit agent, cliphist, udiskie, screenshot and clipboard tools — for both desktops
      terminal # kitty, fonts
      tools # toolbox runtime closure, python env, dotfiles links
      shell # zsh via the dotfiles ZDOTDIR tree, tmux plugins, secretspec
      dotfiles # every dotfile from dotfiles/ in this repo, as out-of-store symlinks
      config-migrations # migrate old whole-directory HM links before linking files
      cheats # nix-cheat: the rebuild / nh / flake card
      sops # sops-nix for the user (same secrets file, age key in ~/.config/sops/age)
      passage # `passage`: an age-keyed password store for the logins you type
      neovim # nvf: Neovim with a small, Nix-built plugin set
      prompt # starship prompt and fastfetch card, Rosé Pine, NixOS logo
      fan # `fan`: status/watch without root, max/auto with a clamp watchdog
      htb-shell # $TARGET/$BOX in every terminal, and in the prompt
      git-site # git-site-sync: a private sync job (sops-encrypted script, 15-min timer)
      ssh # the ssh key (sops) and ~/.ssh/config
      gpg # the GPG main key (public in-repo, secret via sops) and gpg.conf
      git # git identity, signing with the main key, delta
      media # mpd + rmpc, mpv
      spotify # Spotify patched with Spicetify (Sleek, palette colours from theme.nix)
      dcx # Discord chat export; token from sops (secrets/dcx/token), never in the store
      yazi # yazi with previews, Rosé Pine, plugins
      gtk # Gruvpine GTK 3/4, pixel icons, cursor, prefer-dark
      floorp # Floorp as the main browser: ShyFox (Rosé Pine), the Dia bookmarks
      zen # Gruvpine Zen Browser, sharing the encrypted bookmarks export with Floorp
      nixmod # `nixmod NAME`: a new module for a program, every option listed and commented
      messaging-apps # program (nixmod)
      gallery-dl # programs.gallery-dl
    ];

    home = {
      username = user;
      homeDirectory = "/home/${user}";
      stateVersion = "26.05";
    };

    programs.home-manager.enable = true;
    xdg.enable = true;
  }
  ;
}