distcc feature added to hackstation

This commit is contained in:
2026-09-05 19:18:47 +01:00
parent a2959bda31
commit a7b6f63509
2 changed files with 22 additions and 17 deletions

View File

@@ -1,20 +1,24 @@
{ {moduleWithSystem, ...}: {
self, flake.nixosModules.distcc = moduleWithSystem ({unstablePkgs, ...}: {
moduleWithSystem, services.distccd = {
...
}: {
flake.nixosModules.name = moduleWithSystem ({
pkgs,
self',
inputs',
...
}: let
modules = with self.nixosModules; [];
in {
imports = modules;
programs.name = {
enable = true; 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} "$@"
'')
];
}); });
} }

View File

@@ -9,6 +9,7 @@
hackstationConfiguration hackstationConfiguration
amdDrivers amdDrivers
youtube youtube
distcc
development development
bottles bottles
gaming gaming
@@ -16,7 +17,7 @@
sddm-autologin sddm-autologin
nix-ld nix-ld
i3 i3
]; ];
}; };
} }