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 @@
{
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} "$@"
'')
];
});
}

View File

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