distcc feature added to hackstation
This commit is contained in:
@@ -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} "$@"
|
||||||
|
'')
|
||||||
|
];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
hackstationConfiguration
|
hackstationConfiguration
|
||||||
amdDrivers
|
amdDrivers
|
||||||
youtube
|
youtube
|
||||||
|
distcc
|
||||||
development
|
development
|
||||||
bottles
|
bottles
|
||||||
gaming
|
gaming
|
||||||
|
|||||||
Reference in New Issue
Block a user