diff options
author | Alexander Bantyev | 2020-11-15 20:29:43 +0300 |
---|---|---|
committer | notgne2 | 2020-11-16 12:54:05 -0700 |
commit | 54b6b551a1416e5fd88a91e31c5bfd25bfa9fe4c (patch) | |
tree | 29062951a2d2afaf6dc61a2f41cf19dbd064cecd /flake.nix | |
parent | 1c84cace61cb2ac6044f3c3da3dd98285bf1f3b4 (diff) |
Add activation presets for NixOS and noop activation
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |