lol

nixos: Use checks instead of extraDependencies

... as appropriate.

This drops a few unnecessary store paths from the system closure.

+4 -4
+1 -1
nixos/modules/security/wrappers/default.nix
··· 283 283 ''; 284 284 285 285 ###### wrappers consistency checks 286 - system.extraDependencies = lib.singleton (pkgs.runCommandLocal 286 + system.checks = lib.singleton (pkgs.runCommandLocal 287 287 "ensure-all-wrappers-paths-exist" { } 288 288 '' 289 289 # make sure we produce output
+1 -1
nixos/modules/services/databases/postgresql.nix
··· 489 489 "/share/postgresql" 490 490 ]; 491 491 492 - system.extraDependencies = lib.optional (cfg.checkConfig && pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform) configFileCheck; 492 + system.checks = lib.optional (cfg.checkConfig && pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform) configFileCheck; 493 493 494 494 systemd.services.postgresql = 495 495 { description = "PostgreSQL Server";
+1 -1
nixos/modules/services/web-servers/varnish/default.nix
··· 99 99 environment.systemPackages = [ cfg.package ]; 100 100 101 101 # check .vcl syntax at compile time (e.g. before nixops deployment) 102 - system.extraDependencies = mkIf cfg.enableConfigCheck [ 102 + system.checks = mkIf cfg.enableConfigCheck [ 103 103 (pkgs.runCommand "check-varnish-syntax" {} '' 104 104 ${cfg.package}/bin/varnishd -C ${commandLine} 2> $out || (cat $out; exit 1) 105 105 '')
+1 -1
nixos/modules/services/x11/xserver.nix
··· 776 776 xorg.xf86inputevdev.out 777 777 ]; 778 778 779 - system.extraDependencies = singleton (pkgs.runCommand "xkb-validated" { 779 + system.checks = singleton (pkgs.runCommand "xkb-validated" { 780 780 inherit (cfg) xkbModel layout xkbVariant xkbOptions; 781 781 nativeBuildInputs = with pkgs.buildPackages; [ xkbvalidate ]; 782 782 preferLocalBuild = true;