feat: use local version of nix-fast-build
This commit is contained in:
parent
b12b2e2911
commit
e1d746b0f5
5 changed files with 213 additions and 23 deletions
devices/servivi/modules
|
@ -1,14 +1,19 @@
|
|||
{
|
||||
config,
|
||||
nix-eval-jobs,
|
||||
nix-fast-build,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (config.vars) mainUser;
|
||||
inherit (config.sops) secrets;
|
||||
|
||||
nix-fast-buildPkg = pkgs.writeShellApplication {
|
||||
name = "nix-fast-build";
|
||||
text = "nix run github:Mic92/nix-fast-build \"$@\"";
|
||||
nixPkg = {
|
||||
nix = config.nix.package;
|
||||
};
|
||||
nix-fast-buildPkg = nix-fast-build.packages.${pkgs.system}.nix-fast-build.override {
|
||||
nix-eval-jobs =
|
||||
nix-eval-jobs.packages.${pkgs.system}.default.override nixPkg // nixPkg;
|
||||
};
|
||||
in {
|
||||
services.nix-serve = {
|
||||
|
@ -31,7 +36,6 @@ in {
|
|||
|
||||
path = with pkgs; [
|
||||
git
|
||||
nix
|
||||
nix-fast-buildPkg
|
||||
openssh
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue