From 54b6b551a1416e5fd88a91e31c5bfd25bfa9fe4c Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Sun, 15 Nov 2020 20:29:43 +0300 Subject: Add activation presets for NixOS and noop activation --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 5d9427f..9c912e9 100644 --- a/flake.nix +++ b/flake.nix @@ -56,6 +56,10 @@ ]; }; + nixosActivate = base: setActivate base "$PROFILE/bin/switch-to-configuration switch"; + + noopActivate = base: setActivate base ":"; + deployChecks = deploy: builtins.mapAttrs (_: check: check deploy) { schema = deploy: pkgs.runCommandNoCC "jsonschema-deploy-system" { } '' ${pkgs.python3.pkgs.jsonschema}/bin/jsonschema -i ${pkgs.writeText "deploy.json" (builtins.toJSON deploy)} ${./interface.json} && touch $out -- cgit v1.2.3