Commit graph

477 commits

Author SHA1 Message Date
Zhaofeng Li
63a981a6cb flake.lock: Update 2022-08-16 20:16:00 -06:00
Zhaofeng Li
68d0036a2c Thanks clippy 2022-08-16 20:16:00 -06:00
Zhaofeng Li
34bb2e4674 .github/linters: Add rustfmt check 2022-07-29 22:13:09 -07:00
Zhaofeng Li
62a3d1e6f8 Run rustfmt 2022-07-29 22:13:09 -07:00
Zhaofeng Li
e82993a83e .github/manual: Fix github-pages-deploy-action version tag 2022-07-29 22:13:09 -07:00
Zhaofeng Li
5d2f128515 .github: Bump versions 2022-07-17 14:42:34 -07:00
Zhaofeng Li
7d0a6eed90 Apply quit::main to main function
This makes `quit::with_code` actually work with the correct exit code.

Fixes #111.
2022-07-17 14:42:34 -07:00
Zhaofeng Li
16381e9213 .envrc: Bump bundled nix-direnv to 2.1.1 2022-07-17 14:42:34 -07:00
Zhaofeng Li
07efd5818d
Merge pull request #89 from blaggacao/ref/reduce-eval-nix-interface
ref/reduce eval nix interface
2022-07-13 08:45:43 +00:00
David Arnold
b3ca4b1c4d
ref: transparent eval.nix contract
- at least to my eyes, this code formatting gives a better view about
  the gist of the eval.nix interface
2022-07-09 16:04:23 -05:00
David Arnold
e309b2d4b2
ref: reduce eval.nix contract even further
- meta and evalAll contracts are found to be not consumed
2022-07-09 15:41:17 -05:00
David Arnold
83a919bdb0
ref: reduce eval.nix contract forther
- module export contratcts can now bypass the eval.nix iface
- enabled by:9bd5e7bb2540664fe1c728c85f80375fe0cbf9fa
2022-07-09 15:41:17 -05:00
David Arnold
c82517fc12
ref: reduce eval.nix contract
- documentation contratcts can now bypass the eval.nix iface
- enabled by:9bd5e7bb2540664fe1c728c85f80375fe0cbf9fa
2022-07-09 15:41:15 -05:00
Zhaofeng Li
b8bdf5824c hive: Use absolute paths for non-flake hives
Fixes #107.
2022-07-04 14:05:50 -07:00
Zhaofeng Li
fbf25faa24 .github: Don't build manual on macOS
The following doesn't build on macOS:

```nix
pkgs.python3Minimal.override {
  inherit self;
  includeSiteCustomize = true;
}
```

Same error as in
<https://github.com/NixOS/nixpkgs/issues/101229#issuecomment-1086295309>.
2022-07-01 17:41:09 -07:00
Zhaofeng Li
926d6a395b manual/release-notes: Add issue link to allowApplyAll entry 2022-07-01 16:31:13 -07:00
Zhaofeng Li
005bfba5e2 manual/release-notes: Mention nodeSpecialArgs 2022-07-01 16:31:13 -07:00
Zhaofeng Li
ed89d02c1c Cargo.toml: Use Rust 2021 edition 2022-07-01 16:31:13 -07:00
Zhaofeng Li
bde5f4878e Bump flake deps
Stable is now at 22.05 as 21.11 is becoming EOL.
2022-07-01 16:31:13 -07:00
Zhaofeng Li
ea1e7684f1 hive: Add tests for nodeSpecialArgs 2022-07-01 16:31:13 -07:00
Zhaofeng Li
1b045eb38d
Merge pull request #100 from fooker/pr/specialArgs
eval.nix: per-node specialArgs
2022-07-01 16:29:59 -07:00
NeverBehave
dfe55ed461 fix: rename no-substitutes -> no-substitute
Fixes #59.
2022-07-01 16:06:01 -07:00
Zhaofeng Li
432d4212fc apply: Don't enforce meta.allowApplyAll for builds
Fixes #99.
2022-06-24 17:34:37 -07:00
Zhaofeng Li
0209b6dc40 Add name of key to key upload errors
> example | Key upload failed: Error processing key "meow": I/O Error: No such file or directory (os error 2)

Fixes #101.
2022-06-24 17:34:37 -07:00
Zhaofeng Li
d37270f292 Apply flake8 to manual preprocessor 2022-06-24 17:34:37 -07:00
Dustin Frisch
07499a1eaf
eval.nix: per-node specialArgs 2022-06-23 12:09:29 +02:00
Zhaofeng Li
a17e4eda17 integration-tests/allow-apply-all: Fix test after change to error message 2022-06-21 21:29:01 -07:00
Zhaofeng Li
f35e6dfb7f
Merge pull request #96 from NeverBehave/feat/metaconfig
feat(meta): add disallowApplyAll options
2022-06-20 19:24:52 -07:00
NeverBehave
dd7a2924ca feat(meta): add disallowApplyAll options
unify meta access for machinesFile

update release note and config name
2022-06-20 18:47:53 -07:00
Zhaofeng Li
1b3c272b58 manual/release-notes: Mention change in GC root creation
9db25bd914
2022-06-10 11:29:25 -07:00
Zhaofeng Li
dd3f4b252c host/local: Upload keys with sudo as well 2022-06-10 11:29:25 -07:00
Zhaofeng Li
d7aa4ab864 hive/tests: Fix editorconfig 2022-06-09 11:35:02 -07:00
Zhaofeng Li
9db25bd914 deployment: Move GC root creation after build
Previously GC roots were only created after successful activation.
2022-06-09 11:31:49 -07:00
Zhaofeng Li
2b0bafa155 eval.nix: Restore signature in introspect
It was broken in 9bd5e7bb25.
2022-06-09 11:31:49 -07:00
Zhaofeng Li
b5629dca83 eval.nix: Enable config merging for meta.nixpkgs on 21.11+
Ref: #74 #15
2022-06-03 23:51:32 -07:00
Zhaofeng Li
1cd3aa6401 eval.nix: Accept path-likes in meta.nixpkgs as well
This fixes usage with Niv.
2022-06-03 23:51:32 -07:00
Zhaofeng Li
b87da69558 Don't import impure overlays if meta.nixpkgs is a path
Also update documentations to recommend specifying `overlays = []`
explicitly.

Fixes #39.
2022-06-03 23:51:32 -07:00
Zhaofeng Li
ca12be27ed apply-local: Escalate privileges only during activation
Fixes #85.
2022-06-03 23:51:32 -07:00
Zhaofeng Li
fa07814abf hive/assets.rs: Use OpenOptions::new() instead 2022-06-03 23:51:32 -07:00
Zhaofeng Li
4037b61a2b apply: Fix typo in help 2022-06-03 23:51:32 -07:00
Zhaofeng Li
af3247faeb Update docs after #91 2022-06-03 23:51:32 -07:00
Zhaofeng Li
b20068661a flake.lock: Update 2022-06-03 23:51:32 -07:00
Zhaofeng Li
7058029deb Update deps 2022-06-03 23:51:32 -07:00
Zhaofeng Li
ed91898e59 Clippy 2022-06-03 23:51:32 -07:00
Zhaofeng Li
7c1e91a09f integration-tests/apply: Forgot a node
Follows c6b61efc58
2022-06-02 16:43:29 -07:00
Zhaofeng Li
ac8852dcdf hive: Refactor static file creation 2022-06-02 16:39:45 -07:00
Zhaofeng Li
52d969425c flake.nix: Add bashInteractive to dev shell 2022-06-02 16:39:45 -07:00
Zhaofeng Li
f140ea4080 flake.nix: Fix nix run for Nix 2.8 2022-06-02 16:39:45 -07:00
Zhaofeng Li
c6b61efc58 integration-tests/apply: Test building nodes with dots in names
Ref: #92
2022-06-02 16:39:45 -07:00
Wanja Hentze
6fe48ccd04 nix-eval-jobs: Strip quotes surrounding attribute names
Fixes #92.
2022-06-02 16:39:45 -07:00