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"
|
"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": {
|
"nixpkgs_10": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1786719841,
|
"lastModified": 1786719841,
|
||||||
@@ -1061,6 +1077,7 @@
|
|||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"import-tree": "import-tree",
|
"import-tree": "import-tree",
|
||||||
"nixpkgs": "nixpkgs_6",
|
"nixpkgs": "nixpkgs_6",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"nvim": "nvim",
|
"nvim": "nvim",
|
||||||
"omnisearch": "omnisearch",
|
"omnisearch": "omnisearch",
|
||||||
"otter-launcher": "otter-launcher_2",
|
"otter-launcher": "otter-launcher_2",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
# System
|
# System
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
||||||
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
# Apps
|
# Apps
|
||||||
nvim.url = "git+https://git.voidarc.co.uk/voidarc/nvim";
|
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
|
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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,9 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
unstablePkgs = import inputs.nixpkgs-unstable {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
# Make flakeLocation universally addressable
|
# Make flakeLocation universally addressable
|
||||||
flakeLocation = builtins.getEnv "PWD";
|
flakeLocation = builtins.getEnv "PWD";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user