Compare commits
2 Commits
406cfcdcca
...
a7b6f63509
| Author | SHA1 | Date | |
|---|---|---|---|
| a7b6f63509 | |||
| a2959bda31 |
17
flake.lock
generated
17
flake.lock
generated
@@ -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",
|
||||
|
||||
@@ -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";
|
||||
|
||||
24
modules/features/distcc/default.nix
Normal file
24
modules/features/distcc/default.nix
Normal 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} "$@"
|
||||
'')
|
||||
];
|
||||
});
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
hackstationConfiguration
|
||||
amdDrivers
|
||||
youtube
|
||||
distcc
|
||||
development
|
||||
bottles
|
||||
gaming
|
||||
@@ -16,7 +17,7 @@
|
||||
sddm-autologin
|
||||
nix-ld
|
||||
|
||||
i3
|
||||
i3
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
unstablePkgs = import inputs.nixpkgs-unstable {
|
||||
inherit system;
|
||||
};
|
||||
# Make flakeLocation universally addressable
|
||||
flakeLocation = builtins.getEnv "PWD";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user