Commit graph

365 commits

Author SHA1 Message Date
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
Zhaofeng Li
66d65b67d8
Merge pull request #91 from dminuoso/ssh-without-user
Do not use an explicit user for ssh when deploymentUser is null
2022-06-02 16:38:36 -07:00
Victor Nawothnig
012328d75b Switch to cargoLock.lockFile 2022-06-02 10:57:17 +02:00
Timothy DeHerrera
7681d26689 flake.nix: add RUST_SRC_PATH for rust-analyzer
Allow for a rust-analyzer language server running in the devshell to
access the same rust sources used to build the package.
2022-06-01 14:52:54 -07:00
Timothy DeHerrera
6e2d221388 flake.nix: add project binary cache to nix.conf 2022-06-01 14:52:54 -07:00
Victor Nawothnig
e937eb8faa Do not use an explicit user for ssh when deploymentUser is null 2022-06-01 12:30:49 +02:00
Zhaofeng Li
429a0f5aa1 eval.nix: Suppress _module.args docs 2022-05-22 02:15:33 -07:00
Zhaofeng Li
838a200854 flake.lock: Update 2022-05-22 02:15:33 -07:00
Zhaofeng Li
d2cff53d39 Update deps 2022-05-22 02:15:33 -07:00
Zhaofeng Li
1be16d552d apply: Add --reboot flag
Fixes #46.
2022-05-22 02:15:33 -07:00
Zhaofeng Li
e239cbd260 host: Add get_current_system_profile 2022-05-22 02:15:33 -07:00
Zhaofeng Li
c8b79e7e2d ssh: Clean up 2022-05-22 02:15:33 -07:00
David Arnold
9bd5e7bb25 imp: soc of eval, modules & options
- the reason for this change is to have more transparent separation
  of concern between effectuations of the module system and pre-module
  system effectuations

- with improved flakes support down the line, pre-module system
  effectuations will get more complex

- this also allows to patch the aspects of the evaluation individually
  while tracking other components from upstream. eg. path options & eval
  but not modules
2022-05-22 01:54:52 -07:00