nixos/nexus: replace deprecated usage of PermissionsStartOnly
see https://github.com/NixOS/nixpkgs/issues/53852
This commit is contained in:
parent
7808202b38
commit
a6bbc55ae1
|
@ -83,6 +83,8 @@ in
|
||||||
users.users."${cfg.user}" = {
|
users.users."${cfg.user}" = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
|
home = cfg.home;
|
||||||
|
createHome = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.groups."${cfg.group}" = {};
|
users.groups."${cfg.group}" = {};
|
||||||
|
@ -104,8 +106,6 @@ in
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -p ${cfg.home}/nexus3/etc
|
mkdir -p ${cfg.home}/nexus3/etc
|
||||||
|
|
||||||
chown -R ${cfg.user}:${cfg.group} ${cfg.home}
|
|
||||||
|
|
||||||
if [ ! -f ${cfg.home}/nexus3/etc/nexus.properties ]; then
|
if [ ! -f ${cfg.home}/nexus3/etc/nexus.properties ]; then
|
||||||
echo "# Jetty section" > ${cfg.home}/nexus3/etc/nexus.properties
|
echo "# Jetty section" > ${cfg.home}/nexus3/etc/nexus.properties
|
||||||
echo "application-port=${toString cfg.listenPort}" >> ${cfg.home}/nexus3/etc/nexus.properties
|
echo "application-port=${toString cfg.listenPort}" >> ${cfg.home}/nexus3/etc/nexus.properties
|
||||||
|
@ -124,7 +124,6 @@ in
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
PermissionsStartOnly = true;
|
|
||||||
LimitNOFILE = 102642;
|
LimitNOFILE = 102642;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user