Skip to content

Commit f7f83fe

Browse files
authored
Merge branch 'master' into master-riscv64-linux
2 parents 7fb5635 + e3f4183 commit f7f83fe

File tree

8 files changed

+319
-71
lines changed

8 files changed

+319
-71
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Nix flake check
2-
on: push
2+
on: pull_request
33

44
jobs:
55
check:

Cargo.lock

+144-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ edition = "2018"
1212

1313
[dependencies]
1414
clap = { version = "3.0.0-beta.2", features = [ "wrap_help" ] }
15+
dirs = "5.0.1"
1516
flexi_logger = "0.16"
1617
fork = "0.1"
1718
futures-util = "0.3.6"

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ There is also an `activate` binary though this should be ignored, it is only use
4444

4545
### Multi-profile
4646

47-
This type of design (as opposed to more traditional tools like NixOps or morph) allows for lesser-privileged deployments, and the ability to update different things independently of eachother. You can deploy any type of profile to any user, not just a NixOS profile to `root`.
47+
This type of design (as opposed to more traditional tools like NixOps or morph) allows for lesser-privileged deployments, and the ability to update different things independently of each other. You can deploy any type of profile to any user, not just a NixOS profile to `root`.
4848

4949
### Magic Rollback
5050

@@ -125,8 +125,11 @@ This is the core of how `deploy-rs` was designed, any number of these can run on
125125
path = deploy-rs.lib.x86_64-linux.activate.custom pkgs.hello "./bin/hello";
126126
127127
# An optional path to where your profile should be installed to, this is useful if you want to use a common profile name across multiple users, but would have conflicts in your node's profile list.
128-
# This will default to `"/nix/var/nix/profiles/$PROFILE_NAME` if `user` is root (see: generic options), and `/nix/var/nix/profiles/per-user/$USER/$PROFILE_NAME` if it is not.
129-
profilePath = "/nix/var/nix/profiles/per-user/someuser/someprofile";
128+
# This will default to `"/nix/var/nix/profiles/system` if `user` is `root` and profile name is `system`,
129+
# `/nix/var/nix/profiles/per-user/root/$PROFILE_NAME` if profile name is different.
130+
# For non-root profiles will default to /nix/var/nix/profiles/per-user/$USER/$PROFILE_NAME if `/nix/var/nix/profiles/per-user/$USER` already exists,
131+
# and `${XDG_STATE_HOME:-$HOME/.local/state}/nix/profiles/$PROFILE_NAME` otherwise.
132+
profilePath = "/home/someuser/.local/state/nix/profiles/someprofile";
130133
131134
# ...generic options... (see lower section)
132135
}

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118

119119
deployChecks = deploy: builtins.mapAttrs (_: check: check deploy) {
120120
deploy-schema = deploy: final.runCommand "jsonschema-deploy-system" { } ''
121-
${final.python3.pkgs.jsonschema}/bin/jsonschema -i ${final.writeText "deploy.json" (builtins.toJSON deploy)} ${./interface.json} && touch $out
121+
${final.check-jsonschema}/bin/check-jsonschema --schemafile ${./interface.json} ${final.writeText "deploy.json" (builtins.toJSON deploy)} && touch $out
122122
'';
123123

124124
deploy-activate = deploy:

0 commit comments

Comments
 (0)