chore(devshell): Use deploy-rs from nixpkgs for binary caching
This commit is contained in:
parent
ba617d429b
commit
60ae6789d1
1 changed files with 9 additions and 2 deletions
11
flake.nix
11
flake.nix
|
|
@ -63,7 +63,6 @@
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
sops-nix,
|
sops-nix,
|
||||||
deploy-rs,
|
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
|
|
@ -78,6 +77,14 @@
|
||||||
./configuration/hardware-specific/vm.nix
|
./configuration/hardware-specific/vm.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# deploy-rs unfortunately uses an `import nixpkgs`, and its
|
||||||
|
# library functions depend on an instantiated nixpkgs, so we
|
||||||
|
# can't get around multi-nixpkgs-eval.
|
||||||
|
deploy-rs =
|
||||||
|
(inputs.deploy-rs.overlays.default nixpkgs.legacyPackages.${system}
|
||||||
|
nixpkgs.legacyPackages.${system}
|
||||||
|
).deploy-rs;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
##################
|
##################
|
||||||
|
|
@ -159,7 +166,7 @@
|
||||||
|
|
||||||
packages = nixpkgs.lib.attrValues {
|
packages = nixpkgs.lib.attrValues {
|
||||||
inherit (sops-nix.packages.${system}) sops-import-keys-hook sops-init-gpg-key;
|
inherit (sops-nix.packages.${system}) sops-import-keys-hook sops-init-gpg-key;
|
||||||
inherit (deploy-rs.packages.${system}) default;
|
inherit (deploy-rs) deploy-rs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue