diff --git a/modules/features/distcc/default.nix b/modules/features/distcc/default.nix index 0f2459c..9b4496c 100644 --- a/modules/features/distcc/default.nix +++ b/modules/features/distcc/default.nix @@ -1,20 +1,24 @@ -{ - self, - moduleWithSystem, - ... -}: { - flake.nixosModules.name = moduleWithSystem ({ - pkgs, - self', - inputs', - ... - }: let - modules = with self.nixosModules; []; - in { - imports = modules; - programs.name = { +{moduleWithSystem, ...}: { + flake.nixosModules.distcc = moduleWithSystem ({unstablePkgs, ...}: { + services.distccd = { enable = true; - package = self'.packages.hello; + allowedClients = ["192.168.1.0/24"]; }; + systemd.services.distccd = { + serviceConfig = { + Environment = [ + "\"PATH=/run/wrappers/bin:/run/current-system/sw/bin:/usr/bin:/bin\"" + "DISTCCD_PATH=/run/current-system/sw/bin:/run/wrappers/bin:/usr/bin:/bin" + ]; + }; + }; + environment.systemPackages = let + pkgs = unstablePkgs; + lib = pkgs.lib; + in [ + (pkgs.writeShellScriptBin "x86_64-pc-linux-gnu-gcc" '' + exec ${lib.getExe pkgs.gcc15} "$@" + '') + ]; }); } diff --git a/modules/hosts/HACKSTATION/default.nix b/modules/hosts/HACKSTATION/default.nix index 876e39d..5277d2f 100644 --- a/modules/hosts/HACKSTATION/default.nix +++ b/modules/hosts/HACKSTATION/default.nix @@ -9,6 +9,7 @@ hackstationConfiguration amdDrivers youtube + distcc development bottles gaming @@ -16,7 +17,7 @@ sddm-autologin nix-ld - i3 + i3 ]; }; }