Merge pull request #242912 from chayleaf/fix-getent
treewide: update path to getent
This commit is contained in:
commit
e1163b27dd
@ -50,7 +50,7 @@ in
|
||||
];
|
||||
environment.HOME = "/var/lib/evcc";
|
||||
path = with pkgs; [
|
||||
glibc # requires getent
|
||||
getent
|
||||
];
|
||||
serviceConfig = {
|
||||
ExecStart = "${package}/bin/evcc --config ${configFile} ${escapeShellArgs cfg.extraArgs}";
|
||||
|
@ -187,7 +187,7 @@ in {
|
||||
sed -i "s/^as_token:.*$/$as_token/g" ${registrationFile}
|
||||
fi
|
||||
# Allow synapse access to the registration
|
||||
if ${getBin pkgs.glibc}/bin/getent group matrix-synapse > /dev/null; then
|
||||
if ${pkgs.getent}/bin/getent group matrix-synapse > /dev/null; then
|
||||
chgrp matrix-synapse ${registrationFile}
|
||||
chmod g+r ${registrationFile}
|
||||
fi
|
||||
|
@ -137,7 +137,7 @@ in
|
||||
mv -f ${registrationFile}.new ${registrationFile}
|
||||
|
||||
# Grant Synapse access to the registration
|
||||
if ${getBin pkgs.glibc}/bin/getent group matrix-synapse > /dev/null; then
|
||||
if ${pkgs.getent}/bin/getent group matrix-synapse > /dev/null; then
|
||||
chgrp -v matrix-synapse ${registrationFile}
|
||||
chmod -v g+r ${registrationFile}
|
||||
fi
|
||||
|
@ -59,7 +59,7 @@ in {
|
||||
path = [
|
||||
config.networking.resolvconf.package # for configuring DNS in some configs
|
||||
pkgs.procps # for collecting running services (opt-in feature)
|
||||
pkgs.glibc # for `getent` to look up user shells
|
||||
pkgs.getent # for `getent` to look up user shells
|
||||
pkgs.kmod # required to pass tailscale's v6nat check
|
||||
];
|
||||
serviceConfig.Environment = [
|
||||
|
@ -2,7 +2,7 @@
|
||||
autoconf, automake, libtool, pkg-config, zlib, libaio, libxml2, acl, sqlite,
|
||||
liburcu, liburing, attr, makeWrapper, coreutils, gnused, gnugrep, which,
|
||||
openssh, gawk, findutils, util-linux, lvm2, btrfs-progs, e2fsprogs, xfsprogs, systemd,
|
||||
rsync, glibc, rpcsvc-proto, libtirpc, gperftools, nixosTests
|
||||
rsync, getent, rpcsvc-proto, libtirpc, gperftools, nixosTests
|
||||
}:
|
||||
let
|
||||
# NOTE: On each glusterfs release, it should be checked if gluster added
|
||||
@ -42,7 +42,7 @@ let
|
||||
e2fsprogs # tune2fs
|
||||
findutils # find
|
||||
gawk # awk
|
||||
glibc # getent
|
||||
getent # getent
|
||||
gnugrep # grep
|
||||
gnused # sed
|
||||
lvm2 # lvs
|
||||
|
Loading…
Reference in New Issue
Block a user