Commit graph

503 commits

Author SHA1 Message Date
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
Zhaofeng Li
ea4f2ba6dc Migrate other doc links to new domain 2022-05-13 19:14:58 -07:00
Zhaofeng Li
c1dc482c21 integration-tests: Add timeouts to SSH invocations
They occasionally become stuck, similar to NixOS/nixpkgs#171488.
2022-05-13 19:14:58 -07:00
Zhaofeng Li
f5071dcff2 manual: Migrate to cli.rs domain 2022-05-08 17:43:48 -07:00
Zhaofeng Li
b4c832c24f .github: Disable flake check on macOS
Occasionally segfaults ¯\_(ツ)_/¯
2022-04-27 15:05:02 -07:00
Zhaofeng Li
0ce26c1fdd Start work on 0.4.0 2022-04-27 14:10:58 -07:00
Zhaofeng Li
fbefc48d89 Release 0.3.0 2022-04-27 14:10:58 -07:00
Zhaofeng Li
ff417c9783
Merge pull request #77 from otavio/main
Use new Nix for CI
2022-04-26 13:47:22 -07:00
Otavio Salvador
361475c277 flake.lock: Update
Flake lock file updates:

• Updated input 'flake-compat':
    'github:edolstra/flake-compat/64a525ee38886ab9028e6f61790de0832aa3ef03' (2022-03-25)
  → 'github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8' (2022-04-19)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/710fed5a2483f945b14f4a58af2cd3676b42d8c8' (2022-03-30)
  → 'github:NixOS/nixpkgs/87d34a6b8982e901b8e50096b8e79ebc0e66cda0' (2022-04-24)
• Updated input 'stable':
    'github:NixOS/nixpkgs/0aac710801aec4ba545527cf41a5706028fe6271' (2022-04-03)
  → 'github:NixOS/nixpkgs/c254b8c915ac912ae9ee9dc74eac555ccbf33795' (2022-04-24)
• Updated input 'utils':
    'github:numtide/flake-utils/0f8662f1319ad6abf89b3380dd2722369fc51ade' (2022-03-26)
  → 'github:numtide/flake-utils/a4b154ebbdc88c8498a5c7b01589addc9e9cb678' (2022-04-11)
2022-04-25 22:00:04 -03:00
Otavio Salvador
67de5dc96d ci: update cachix/install-nix-action to v17
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2022-04-25 21:57:25 -03:00
Otavio Salvador
f1a538398b ci: upgrade to Nix 2.8.0 for build and test
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2022-04-25 21:56:50 -03:00
Otavio Salvador
6b95ec1725 ci: remove unused Nix versions in build stage
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2022-04-25 21:55:30 -03:00
Zhaofeng Li
a9498de2c7 manual/release-notes: Mention key services (#48) 2022-04-25 11:54:46 -07:00