hst: use plausible overlay template
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 2m11s
Test / Hakurei (push) Successful in 3m6s
Test / Hpkg (push) Successful in 3m57s
Test / Hakurei (race detector) (push) Successful in 5m19s
Test / Sandbox (race detector) (push) Successful in 2m7s
Test / Flake checks (push) Successful in 1m39s
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 2m11s
Test / Hakurei (push) Successful in 3m6s
Test / Hpkg (push) Successful in 3m57s
Test / Hakurei (race detector) (push) Successful in 5m19s
Test / Sandbox (race detector) (push) Successful in 2m7s
Test / Flake checks (push) Successful in 1m39s
The current value is copied from a test case, and does not resemble its intended use case. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
9e3df0905b
commit
04a27c8e47
@ -49,7 +49,7 @@ Filesystem
|
|||||||
autoroot:w:/var/lib/hakurei/base/org.debian
|
autoroot:w:/var/lib/hakurei/base/org.debian
|
||||||
autoetc:/etc/
|
autoetc:/etc/
|
||||||
w+ephemeral(-rwxr-xr-x):/tmp/
|
w+ephemeral(-rwxr-xr-x):/tmp/
|
||||||
w*/nix/store:/mnt-root/nix/.rw-store/upper:/mnt-root/nix/.rw-store/work:/mnt-root/nix/.ro-store
|
w*/nix/store:/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/upper:/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work:/var/lib/hakurei/base/org.nixos/ro-store
|
||||||
*/nix/store
|
*/nix/store
|
||||||
/run/current-system@
|
/run/current-system@
|
||||||
/run/opengl-driver@
|
/run/opengl-driver@
|
||||||
@ -130,7 +130,7 @@ Filesystem
|
|||||||
autoroot:w:/var/lib/hakurei/base/org.debian
|
autoroot:w:/var/lib/hakurei/base/org.debian
|
||||||
autoetc:/etc/
|
autoetc:/etc/
|
||||||
w+ephemeral(-rwxr-xr-x):/tmp/
|
w+ephemeral(-rwxr-xr-x):/tmp/
|
||||||
w*/nix/store:/mnt-root/nix/.rw-store/upper:/mnt-root/nix/.rw-store/work:/mnt-root/nix/.ro-store
|
w*/nix/store:/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/upper:/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work:/var/lib/hakurei/base/org.nixos/ro-store
|
||||||
*/nix/store
|
*/nix/store
|
||||||
/run/current-system@
|
/run/current-system@
|
||||||
/run/opengl-driver@
|
/run/opengl-driver@
|
||||||
@ -290,10 +290,10 @@ App
|
|||||||
"type": "overlay",
|
"type": "overlay",
|
||||||
"dst": "/nix/store",
|
"dst": "/nix/store",
|
||||||
"lower": [
|
"lower": [
|
||||||
"/mnt-root/nix/.ro-store"
|
"/var/lib/hakurei/base/org.nixos/ro-store"
|
||||||
],
|
],
|
||||||
"upper": "/mnt-root/nix/.rw-store/upper",
|
"upper": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/upper",
|
||||||
"work": "/mnt-root/nix/.rw-store/work"
|
"work": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "bind",
|
"type": "bind",
|
||||||
@ -444,10 +444,10 @@ App
|
|||||||
"type": "overlay",
|
"type": "overlay",
|
||||||
"dst": "/nix/store",
|
"dst": "/nix/store",
|
||||||
"lower": [
|
"lower": [
|
||||||
"/mnt-root/nix/.ro-store"
|
"/var/lib/hakurei/base/org.nixos/ro-store"
|
||||||
],
|
],
|
||||||
"upper": "/mnt-root/nix/.rw-store/upper",
|
"upper": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/upper",
|
||||||
"work": "/mnt-root/nix/.rw-store/work"
|
"work": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "bind",
|
"type": "bind",
|
||||||
@ -654,10 +654,10 @@ func TestPrintPs(t *testing.T) {
|
|||||||
"type": "overlay",
|
"type": "overlay",
|
||||||
"dst": "/nix/store",
|
"dst": "/nix/store",
|
||||||
"lower": [
|
"lower": [
|
||||||
"/mnt-root/nix/.ro-store"
|
"/var/lib/hakurei/base/org.nixos/ro-store"
|
||||||
],
|
],
|
||||||
"upper": "/mnt-root/nix/.rw-store/upper",
|
"upper": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/upper",
|
||||||
"work": "/mnt-root/nix/.rw-store/work"
|
"work": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "bind",
|
"type": "bind",
|
||||||
|
@ -57,11 +57,11 @@ type (
|
|||||||
// Init user namespace supplementary groups inherited by all container processes.
|
// Init user namespace supplementary groups inherited by all container processes.
|
||||||
Groups []string `json:"groups"`
|
Groups []string `json:"groups"`
|
||||||
|
|
||||||
// High level configuration applied to the underlying [container.Params].
|
// High level configuration applied to the underlying [container].
|
||||||
Container *ContainerConfig `json:"container"`
|
Container *ContainerConfig `json:"container"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainerConfig describes the container configuration to be applied to an underlying [container.Params].
|
// ContainerConfig describes the container configuration to be applied to an underlying [container].
|
||||||
ContainerConfig struct {
|
ContainerConfig struct {
|
||||||
// Container UTS namespace hostname.
|
// Container UTS namespace hostname.
|
||||||
Hostname string `json:"hostname,omitempty"`
|
Hostname string `json:"hostname,omitempty"`
|
||||||
|
@ -117,9 +117,9 @@ func Template() *Config {
|
|||||||
{&FSEphemeral{Target: fhs.AbsTmp, Write: true, Perm: 0755}},
|
{&FSEphemeral{Target: fhs.AbsTmp, Write: true, Perm: 0755}},
|
||||||
{&FSOverlay{
|
{&FSOverlay{
|
||||||
Target: check.MustAbs("/nix/store"),
|
Target: check.MustAbs("/nix/store"),
|
||||||
Lower: []*check.Absolute{check.MustAbs("/mnt-root/nix/.ro-store")},
|
Lower: []*check.Absolute{fhs.AbsVarLib.Append("hakurei/base/org.nixos/ro-store")},
|
||||||
Upper: check.MustAbs("/mnt-root/nix/.rw-store/upper"),
|
Upper: fhs.AbsVarLib.Append("hakurei/nix/u0/org.chromium.Chromium/rw-store/upper"),
|
||||||
Work: check.MustAbs("/mnt-root/nix/.rw-store/work"),
|
Work: fhs.AbsVarLib.Append("hakurei/nix/u0/org.chromium.Chromium/rw-store/work"),
|
||||||
}},
|
}},
|
||||||
{&FSBind{Source: check.MustAbs("/nix/store")}},
|
{&FSBind{Source: check.MustAbs("/nix/store")}},
|
||||||
{&FSLink{Target: fhs.AbsRun.Append("current-system"), Linkname: "/run/current-system", Dereference: true}},
|
{&FSLink{Target: fhs.AbsRun.Append("current-system"), Linkname: "/run/current-system", Dereference: true}},
|
||||||
|
@ -193,10 +193,10 @@ func TestTemplate(t *testing.T) {
|
|||||||
"type": "overlay",
|
"type": "overlay",
|
||||||
"dst": "/nix/store",
|
"dst": "/nix/store",
|
||||||
"lower": [
|
"lower": [
|
||||||
"/mnt-root/nix/.ro-store"
|
"/var/lib/hakurei/base/org.nixos/ro-store"
|
||||||
],
|
],
|
||||||
"upper": "/mnt-root/nix/.rw-store/upper",
|
"upper": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/upper",
|
||||||
"work": "/mnt-root/nix/.rw-store/work"
|
"work": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "bind",
|
"type": "bind",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user