summaryrefslogtreecommitdiff
path: root/config/nix.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2024-12-08 21:19:26 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2024-12-08 21:19:26 +0100
commitc30728dd51a4bd4fc24148ea400516c712b8bb16 (patch)
tree5e46867015bac1547410379aa17331d357cd003a /config/nix.nix
parentdb22a400ddb6123f25f779a1c8b8a6e0679c0b16 (diff)
nix: remove build filtering
Diffstat (limited to 'config/nix.nix')
-rw-r--r--config/nix.nix23
1 files changed, 1 insertions, 22 deletions
diff --git a/config/nix.nix b/config/nix.nix
index dae9061..a3d2da2 100644
--- a/config/nix.nix
+++ b/config/nix.nix
@@ -1,8 +1,4 @@
-{
- lib,
- pkgs,
- ...
-}: {
+{lib, ...}: {
personal.nix = {
enable = true;
autoUpgrade = {
@@ -31,22 +27,5 @@
};
startLimitBurst = mkForce 1;
startLimitIntervalSec = mkForce 3600;
- preStart = lib.mkAfter ''
- echo Dry-building...
- drvs=$(${pkgs.nixos-rebuild}/bin/nixos-rebuild dry-build --flake /etc/nixos/ 2>&1 | grep '/nix/store')
- for drv in $drvs
- do
- case $(echo $drv | cut -d'-' -f2) in
- gcc | rust | cmake | ghc)
- echo Found $drv!
- echo Cancelling build: it is likely to be resource-intensive.
- echo Here are the derivations that were going to be built, and the paths that were going to be downloaded:
- echo $drvs | tr " " "\n"
- exit 1
- ;;
- esac
- done
- echo No resource-intensive building detected, good to go!
- '';
};
}