Compare commits

...

2 Commits

Author SHA1 Message Date
a7b6f63509 distcc feature added to hackstation 2026-09-05 19:18:47 +01:00
a2959bda31 added unstablePkgs module option 2026-09-05 19:18:29 +01:00
5 changed files with 47 additions and 1 deletions

17
flake.lock generated
View File

@@ -766,6 +766,22 @@
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1788531059,
"narHash": "sha256-hLD4l3QOGBQhkVp3mQ2lJ/YbEi99qUgKapb40KovZ88=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "801bef6abd86b91e51083066b83fb354a11fc640",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_10": {
"locked": {
"lastModified": 1786719841,
@@ -1061,6 +1077,7 @@
"hyprland": "hyprland",
"import-tree": "import-tree",
"nixpkgs": "nixpkgs_6",
"nixpkgs-unstable": "nixpkgs-unstable",
"nvim": "nvim",
"omnisearch": "omnisearch",
"otter-launcher": "otter-launcher_2",

View File

@@ -4,6 +4,7 @@
inputs = {
# System
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Apps
nvim.url = "git+https://git.voidarc.co.uk/voidarc/nvim";

View File

@@ -0,0 +1,24 @@
{moduleWithSystem, ...}: {
flake.nixosModules.distcc = moduleWithSystem ({unstablePkgs, ...}: {
services.distccd = {
enable = true;
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
];
};
}

View File

@@ -5,6 +5,9 @@
inherit system;
config.allowUnfree = true;
};
unstablePkgs = import inputs.nixpkgs-unstable {
inherit system;
};
# Make flakeLocation universally addressable
flakeLocation = builtins.getEnv "PWD";
};