Age | Commit message (Collapse) | Author | Files | Lines |
|
these changes were generated with nixq 0.0.2, by running
nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix
two mentions of the mdDoc function remain in nixos/, both of which
are inside of comments.
Since lib.mdDoc is already defined as just id, this commit is a no-op as
far as Nix (and the built manual) is concerned.
|
|
|
|
the conversion procedure is simple:
- find all things that look like options, ie calls to either `mkOption`
or `lib.mkOption` that take an attrset. remember the attrset as the
option
- for all options, find a `description` attribute who's value is not a
call to `mdDoc` or `lib.mdDoc`
- textually convert the entire value of the attribute to MD with a few
simple regexes (the set from mdize-module.sh)
- if the change produced a change in the manual output, discard
- if the change kept the manual unchanged, add some text to the
description to make sure we've actually found an option. if the
manual changes this time, keep the converted description
this procedure converts 80% of nixos options to markdown. around 2000
options remain to be inspected, but most of those fail the "does not
change the manual output check": currently the MD conversion process
does not faithfully convert docbook tags like <code> and <package>, so
any option using such tags will not be converted at all.
|
|
|
|
nixos/security/wrappers: make well-typed
|
|
This is slightly more verbose and inconvenient, but it forces you
to think about what the wrapper ownership and permissions will be.
|
|
This is to keep the same permissions/setuid/setgid as before the change
in security.wrappers defaults.
|
|
|
|
I don't think there was a security issue here, but using 'install' is
preferred.
Ref #121293.
|
|
The corresponding package failed to build for >9 months.
|
|
The chronos package has been broken for > 9 months due to the breakage
of the mesos package.
|
|
|
|
|
|
|
|
Since https://github.com/NixOS/nixpkgs/pull/61321, local-fs.target is
part of sysinit.target again, meaning units without
DefaultDependencies=no will automatically depend on it, and the manual
set dependencies can be dropped.
|
|
tree-wide: nixos: /var/run -> /run
|
|
|
|
|
|
|
|
Without fcrontab being setuid, every attempt by an user in the fcron
group to edit their own crontab (via `fcrontab -e`) results in the
following error:
```
2018-05-06 11:29:07 ERROR could not change euid to 273: Operation not permitted
2018-05-06 11:29:07 ERROR fcron child aborted: this does not affect the main fcron daemon, but this may prevent a job from being run or an email from being sent.
```
Adding setuid by hand has resolved this issue and aligns with the way
fcrontab is installed on other distributions.
|
|
|
|
"batch" is a shell script so invoking it via setuid wrapper never worked
anyway. (The kernel drops perms on executables with shebang.) A previous
nixpkgs commit made "batch" invoke the NixOS setuid "at" wrapper to gain
needed privileges.
Thanks to @yesbox for noticing.
|
|
|
|
otherwise fcronsighup is not found.
Set PATH to /run/current-system/sw/bin does not seems to be used by service file anyway.
|
|
This does not fully address the issue, as cron will not restart when
the timezone is changed imperatively as it presumably needs to.
|
|
fixes #25072
|
|
fcron does handle permissions on its own correctly
|
|
They contain no useful information and increase the length of the
autogenerated options documentation.
See discussion in #18816.
|
|
fixes #23320 #23413
|
|
|
|
* convert list -> attrset
* 'atd' doesn't exist, 'at' does
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configuration.
|
|
|
|
Elsewhere we set it to "mkDefault (allFiles != [])" to the default has
no effect.
|
|
|
|
|
|
Otherwise, /etc/crontab won't be deleted when cron is disabled.
|
|
The rationale for disabling this is: 1) systemd timers are better; 2)
it gets rid of one usually unnecessary process, which makes containers
more light-weight.
Note that cron is still enabled if services.cron.systemCronJobs is
non-empty, so this only matters if you have no declarative cron jobs
but do have user cron jobs.
|
|
|
|
Currently the module hardcodes the systemd service user to "marathon".
With this change one would not need to create an extra systemd config to
override the user.
So why would one need to override the Marathon user? Some apps require
root access to run. You can't run those with Marathon unless you
override the default user to root. Marathon also provides a
`--mesos_user` command line flag which allows you to run apps using
arbitrary users. You need to run the framework as root to enable this
functionality.
|
|
The new module makes it possible to pass extra commandline
arguments to Marathon as well as environment variables.
|
|
Update chronos default port
|