Fix ordering of activation operations
This commit is contained in:
parent
b6e9f10fc3
commit
4b6a7eafda
1 changed files with 9 additions and 2 deletions
|
@ -92,7 +92,8 @@
|
||||||
system.activationScripts =
|
system.activationScripts =
|
||||||
let
|
let
|
||||||
ensureSystemExistsScript = lib.concatStringsSep "\n" (map (path: ''mkdir -p "${path}"'') config.chvp.base.zfs.ensureSystemExists);
|
ensureSystemExistsScript = lib.concatStringsSep "\n" (map (path: ''mkdir -p "${path}"'') config.chvp.base.zfs.ensureSystemExists);
|
||||||
ensureHomeExistsScript = lib.concatStringsSep "\n" (map (path: ''mkdir -p "/home/charlotte/${path}"; chown charlotte:users /home/charlotte/${path};'') config.chvp.base.zfs.ensureHomeExists);
|
ensureHomeExistsScript = lib.concatStringsSep "\n" (map (path: ''mkdir -p "/home/charlotte/${path}"'') config.chvp.base.zfs.ensureHomeExists);
|
||||||
|
ensureHomePermissionsScript = lib.concatStringsSep "\n" (map (path: ''chown charlotte:users /home/charlotte/${path}'') config.chvp.base.zfs.ensureHomeExists);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
ensureSystemPathsExist = {
|
ensureSystemPathsExist = {
|
||||||
|
@ -104,9 +105,15 @@
|
||||||
mkdir -p /home/charlotte/
|
mkdir -p /home/charlotte/
|
||||||
${ensureHomeExistsScript}
|
${ensureHomeExistsScript}
|
||||||
'';
|
'';
|
||||||
deps = [ "users" "groups" ];
|
|
||||||
};
|
};
|
||||||
agenixInstall.deps = [ "ensureSystemPathsExist" "ensureHomePathsExist" ];
|
agenixInstall.deps = [ "ensureSystemPathsExist" "ensureHomePathsExist" ];
|
||||||
|
ensureHomePermissionsScript = {
|
||||||
|
text = ''
|
||||||
|
chown charlotte:users /home/charlotte
|
||||||
|
${ensureHomePermissionsScript}
|
||||||
|
'';
|
||||||
|
deps = [ "agenixInstall" "users" "groups" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services =
|
systemd.services =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue