···496496 in
497497 filter types.shellPackage.check shells;
498498499499+ lingeringUsers = map (u: u.name) (attrValues (flip filterAttrs cfg.users (n: u: u.linger)));
499500in {
500501 imports = [
501502 (mkAliasOptionModuleMD [ "users" "extraUsers" ] [ "users" "users" ])
···695696 '';
696697 } else ""; # keep around for backwards compatibility
697698698698- system.activationScripts.update-lingering = let
699699- lingerDir = "/var/lib/systemd/linger";
700700- lingeringUsers = map (u: u.name) (attrValues (flip filterAttrs cfg.users (n: u: u.linger)));
701701- lingeringUsersFile = builtins.toFile "lingering-users"
702702- (concatStrings (map (s: "${s}\n")
703703- (sort (a: b: a < b) lingeringUsers))); # this sorting is important for `comm` to work correctly
704704- in stringAfter [ "users" ] ''
705705- if [ -e ${lingerDir} ] ; then
699699+ systemd.services.linger-users = lib.mkIf ((builtins.length lingeringUsers) > 0) {
700700+ wantedBy = ["multi-user.target"];
701701+ after = ["systemd-logind.service"];
702702+ requires = ["systemd-logind.service"];
703703+704704+ script = let
705705+ lingerDir = "/var/lib/systemd/linger";
706706+ lingeringUsersFile = builtins.toFile "lingering-users"
707707+ (concatStrings (map (s: "${s}\n")
708708+ (sort (a: b: a < b) lingeringUsers))); # this sorting is important for `comm` to work correctly
709709+ in ''
710710+ mkdir -vp ${lingerDir}
706711 cd ${lingerDir}
707707- for user in ${lingerDir}/*; do
708708- if ! id "$user" >/dev/null 2>&1; then
712712+ for user in $(ls); do
713713+ if ! id "$user" >/dev/null; then
714714+ echo "Removing linger for missing user $user"
709715 rm --force -- "$user"
710716 fi
711717 done
712712- ls ${lingerDir} | sort | comm -3 -1 ${lingeringUsersFile} - | xargs -r ${pkgs.systemd}/bin/loginctl disable-linger
713713- ls ${lingerDir} | sort | comm -3 -2 ${lingeringUsersFile} - | xargs -r ${pkgs.systemd}/bin/loginctl enable-linger
714714- fi
715715- '';
718718+ ls | sort | comm -3 -1 ${lingeringUsersFile} - | xargs -r ${pkgs.systemd}/bin/loginctl disable-linger
719719+ ls | sort | comm -3 -2 ${lingeringUsersFile} - | xargs -r ${pkgs.systemd}/bin/loginctl enable-linger
720720+ '';
721721+722722+ serviceConfig.Type = "oneshot";
723723+ };
716724717725 # Warn about user accounts with deprecated password hashing schemes
718726 # This does not work when the users and groups are created by
+2-2
nixos/modules/programs/steam.nix
···4545 apply = steam: steam.override (prev: {
4646 extraEnv = (lib.optionalAttrs (cfg.extraCompatPackages != [ ]) {
4747 STEAM_EXTRA_COMPAT_TOOLS_PATHS = makeSearchPathOutput "steamcompattool" "" cfg.extraCompatPackages;
4848+ }) // (optionalAttrs cfg.extest.enable {
4949+ LD_PRELOAD = "${pkgs.pkgsi686Linux.extest}/lib/libextest.so";
4850 }) // (prev.extraEnv or {});
4951 extraLibraries = pkgs: let
5052 prevLibs = if prev ? extraLibraries then prev.extraLibraries pkgs else [ ];
···5961 # use the setuid wrapped bubblewrap
6062 bubblewrap = "${config.security.wrapperDir}/..";
6163 };
6262- } // optionalAttrs cfg.extest.enable {
6363- extraEnv.LD_PRELOAD = "${pkgs.pkgsi686Linux.extest}/lib/libextest.so";
6464 });
6565 description = lib.mdDoc ''
6666 The Steam package to use. Additional libraries are added from the system
···2828 };
2929 group.root.exists = true;
3030 kernel-param."kernel.ostype".value = "Linux";
3131- service.goss = {
3232- enabled = true;
3333- running = true;
3434- };
3531 user.root.exists = true;
3632 };
3733 };
···4642 with subtest("returns health status"):
4743 result = json.loads(machine.succeed("curl -sS http://localhost:8080/healthz"))
48444949- assert len(result["results"]) == 10, f".results should be an array of 10 items, was {result['results']!r}"
4545+ assert len(result["results"]) == 8, f".results should be an array of 10 items, was {result['results']!r}"
5046 assert result["summary"]["failed-count"] == 0, f".summary.failed-count should be zero, was {result['summary']['failed-count']}"
5151- assert result["summary"]["test-count"] == 10, f".summary.test-count should be 10, was {result['summary']['test-count']}"
4747+ assert result["summary"]["test-count"] == 8, f".summary.test-count should be 10, was {result['summary']['test-count']}"
5248 '';
5349})
···2525 poetry-core
2626 ];
27272828- # Tests are only available in the mono repo
2929- doCheck = false;
3030-3128 dependencies = [
3229 llama-index-core
3330 llama-index-llms-openai
3431 llama-index-program-openai
3532 ];
3333+3434+ # Tests are only available in the mono repo
3535+ doCheck = false;
36363737 pythonImportsCheck = [
3838 "llama_index.question_gen.openai"