diff --git a/nixos/common/users/laura.nix b/nixos/common/users/laura.nix index 9275937..6c19947 100644 --- a/nixos/common/users/laura.nix +++ b/nixos/common/users/laura.nix @@ -11,3 +11,4 @@ extraGroups = [ ]; }; } + diff --git a/nixos/hosts/hades/lucy/configuration.nix b/nixos/hosts/hades/lucy/configuration.nix index ad4cfdc..f80b3db 100644 --- a/nixos/hosts/hades/lucy/configuration.nix +++ b/nixos/hosts/hades/lucy/configuration.nix @@ -3,8 +3,28 @@ # and in the NixOS manual (accessible by running ‘nixos-help’). { pkgs, ... }: +let + # Redefining the package instead of overriding as overriding GoModules seems broken + # see: https://github.com/NixOS/nixpkgs/issues/86349 + nuclei-latest = pkgs.buildGoModule rec { + pname = "nuclei"; + version = "2.9.2"; -{ + src = pkgs.fetchFromGitHub { + owner = "projectdiscovery"; + repo = pname; + rev = "1f9a065713924b28b203e2108fc76d7a1ec49068"; + hash = "sha256-QiegMoBy0gZMyQl2MRAwR14zXeh8wvVonyETdAzHbj0="; + }; + + vendorHash = "sha256-0JNwoBqLKH1F/0Tr8o35gCSNT/2plIjIQvZRuzAZ5P8="; + + modRoot = "./v2"; + subPackages = [ "cmd/nuclei/" ]; + + doCheck = false; + }; +in { imports = [ ./hardware-configuration.nix ]; # This value determines the NixOS release from which the default @@ -16,13 +36,7 @@ system.stateVersion = "23.05"; # Did you read the comment? # Additional packages - environment.systemPackages = with pkgs; [ - gcc - go - jq - nuclei - rustup - ]; + environment.systemPackages = with pkgs; [ gcc go jq rustup nuclei-latest ]; networking.firewall.allowedTCPPorts = [ ];