fix: give ownership of headscale oidc secret file to headscale user
parent
a7d62018d8
commit
fc95fa8caa
|
@ -16,7 +16,7 @@
|
||||||
};
|
};
|
||||||
age.secrets.OIDC_APP_SECRET_HEADSCALE = {
|
age.secrets.OIDC_APP_SECRET_HEADSCALE = {
|
||||||
file = ./secrets/samsehu_OIDC_APP_SECRET_HEADSCALE.age;
|
file = ./secrets/samsehu_OIDC_APP_SECRET_HEADSCALE.age;
|
||||||
owner = "dex";
|
owner = "headscale";
|
||||||
group = "dex";
|
group = "headscale";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -534,6 +534,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Headscale for access to the network while away from home
|
# Headscale for access to the network while away from home
|
||||||
|
users.users.headscale = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "headscale";
|
||||||
|
};
|
||||||
|
users.groups.headscale = {};
|
||||||
services.headscale = {
|
services.headscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.juanfont-headscale.headscale;
|
package = pkgs.juanfont-headscale.headscale;
|
||||||
|
|
Loading…
Reference in New Issue