mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44:40 +02:00
deploy-rs: use overlay and fix rebuilding
This commit is contained in:
parent
e700821a4a
commit
5f8f6f0263
1 changed files with 10 additions and 2 deletions
12
flake.nix
12
flake.nix
|
@ -54,9 +54,16 @@
|
||||||
|
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
|
|
||||||
perSystem = { self', inputs', config, pkgs, ... }: {
|
perSystem = { self', inputs', config, pkgs, system, ... }: {
|
||||||
# make pkgs available to all `perSystem` functions
|
# make pkgs available to all `perSystem` functions
|
||||||
_module.args.pkgs = inputs'.nixpkgs.legacyPackages;
|
_module.args.pkgs = import inputs.nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
# prevent rebuilding deploy-rs everytime when nixpkgs changes
|
||||||
|
overlays = [
|
||||||
|
deploy-rs.overlay
|
||||||
|
(self: super: { deploy-rs = { inherit (pkgs) deploy-rs; lib = super.deploy-rs.lib; }; })
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# enable pre-commit checks
|
# enable pre-commit checks
|
||||||
pre-commit.settings = {
|
pre-commit.settings = {
|
||||||
|
@ -82,6 +89,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
flake = {
|
flake = {
|
||||||
|
# currently disabled, because this causes rebuilds
|
||||||
# checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
# checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||||
|
|
||||||
deploy = import ./machines/deploy.nix (inputs // {
|
deploy = import ./machines/deploy.nix (inputs // {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue