forked from security/hakurei
Due to the special nature of the init process, direct use of wait outside the wait4 loop is racy. This change copies the wstatus from wait4 loop state instead. Signed-off-by: Ophestra <cat@gensokyo.uk>
47 lines
1019 B
Nix
47 lines
1019 B
Nix
{ pkgs, ... }:
|
|
{
|
|
environment.hakurei = {
|
|
enable = true;
|
|
stateDir = "/var/lib/hakurei";
|
|
users.alice = 0;
|
|
apps = {
|
|
"cat.gensokyo.extern.foot.noEnablements" = {
|
|
name = "ne-foot";
|
|
identity = 1;
|
|
shareUid = true;
|
|
verbose = true;
|
|
share = pkgs.foot;
|
|
packages = [ pkgs.foot ];
|
|
command = "foot";
|
|
enablements = {
|
|
dbus = false;
|
|
pipewire = false;
|
|
};
|
|
};
|
|
|
|
"cat.gensokyo.extern.foot.badDaemon" = {
|
|
name = "bd-foot";
|
|
identity = 1;
|
|
shareUid = true;
|
|
verbose = true;
|
|
share = pkgs.foot;
|
|
packages = [ pkgs.foot ];
|
|
command = "foot";
|
|
enablements = {
|
|
dbus = false;
|
|
};
|
|
extraPaths = [
|
|
{
|
|
type = "daemon";
|
|
dst = "/proc/nonexistent";
|
|
path = "/usr/bin/env";
|
|
args = [ "false" ];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
extraHomeConfig.home.stateVersion = "23.05";
|
|
};
|
|
}
|