repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
flake.nixNix94 lines3.5 KiBraw download
{
  description = "NixDaemon: NixOS + home-manager for the PCSpecialist Valeon II 17 (Hyprland + Caelestia, Niri + Noctalia, dead-GPU-fan workaround)";

  # The flake is dendritic: flake-parts evaluates every *.nix under ./modules
  # (import-tree) as a flake-parts module, and each file declares the outputs
  # it owns (flake.nixosModules.<name>, flake.homeModules.<name>,
  # flake.nixosConfigurations.<host>, perSystem.packages.<name>). Files and
  # directories whose path contains `/_` are skipped. Modules refer to each
  # other by name through `self`, never by path.
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    flake-parts = {
      url = "github:hercules-ci/flake-parts";
      inputs.nixpkgs-lib.follows = "nixpkgs";
    };
    import-tree.url = "github:vic/import-tree";

    # Wrapped, portable programs (modules/features/desktop/{niri,noctalia}.nix):
    # `nix run ~/NixDaemon#niri` works anywhere the flake can be fetched.
    wrapper-modules = {
      url = "github:BirdeeHub/nix-wrapper-modules";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    # Deliberately not following nixpkgs: Hyprland pins its own, and the
    # hyprland.cachix.org cache (modules/hosts/laptop/nix-settings.nix) only
    # serves builds made against those pins.
    hyprland.url = "github:hyprwm/Hyprland";

    # Shell and CLI pin each other, so one revision of each is used everywhere.
    caelestia-shell = {
      url = "github:caelestia-dots/shell";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.caelestia-cli.follows = "caelestia-cli";
    };
    caelestia-cli = {
      url = "github:caelestia-dots/cli";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.caelestia-shell.follows = "caelestia-shell";
    };

    # Claude Code and the Claude desktop app (modules/features/workstation.nix).
    llm-agents.url = "github:numtide/llm-agents.nix";

    # Secrets: encrypted in secrets/ with age, decrypted at activation
    # (modules/hosts/laptop/sops.nix for the system, modules/home/sops.nix for the user).
    sops-nix = {
      url = "github:Mic92/sops-nix";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    # Zen Browser, which is not in nixpkgs (modules/home/zen.nix).
    # `packages.default` is the general release channel; `twilight` is nightly.
    zen-browser = {
      url = "github:0xc000022070/zen-browser-flake";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.home-manager.follows = "home-manager";
    };

    # Neovim, configured in Nix (modules/home/neovim.nix).
    nvf = {
      url = "github:notashelf/nvf";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    # Noctalia's plugin registry, pinned like any other input; the plugins in
    # use are linked into ~/.config/noctalia/plugins (modules/home/noctalia-plugins.nix).
    noctalia-plugins = {
      url = "github:noctalia-dev/noctalia-plugins";
      flake = false;
    };

    # Spotify patched with Spicetify, declared in Nix (modules/home/spotify.nix).
    # The home-manager module installs Spotify itself; no separate package.
    spicetify-nix = {
      url = "github:Gerg-L/spicetify-nix";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    # GRUB and console colours follow theme.nix (modules/features/theme.nix).
    stylix = {
      url = "github:nix-community/stylix";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
}