summary refs log tree commit diff
path: root/nixos/modules/programs/atop.nix
Commit message (Collapse)AuthorAge
* nixos/atop: Fix regression in enabling atop unitsBruce Toll2023-07-08
| | | | | | | | | | | | Fix regression where the systemd units for atop are no longer automatically started at boot when programs.atop.enable = true. Regression was introduced in commit: 09350ff7d424 nixos/atop: Convert log format to fix service start This commit restructures the atop systemd service config so that the code to convert the log format gets configured as a preStart script along with the addition of the wantedBy rule.
* Merge pull request #213301 from bcc32/atop-dont-leave-new-log-files7c6f434c2023-03-13
|\ | | | | nixos/atop: Remove upgraded logfiles if not replaced
| * nixos/atop: Remove upgraded logfiles if not replacedAaron L. Zeng2023-01-29
| | | | | | | | | | | | | | | | Before this change, starting atop regularly caused a quadratic increase in the number of log files over time, as each daily log file was copied (multiple times) to a new file, and then left there because the upgrade was a no-op. This eventually led to atop being unable to start because the log file name became too long!
* | nixos/atop: Don't choke if no existing atop logsRobert Kovacsics2023-02-28
|/
* nixos/*: automatically convert option descriptionspennae2022-08-31
| | | | | | | | | | | | conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
* nixos/programs: invariant option docs MD conversionspennae2022-07-24
|
* nixos/atop: Convert log format to fix service startKlemens Nanni2022-05-31
| | | | | | | | | | | | | | | | | | | | Raw logs are stored in a versioned binary format and must be update with atopconvert(1) upon atop version updates. Failure to do so results in atop.service startup failure as I found out the hard way after the "atop: 2.6.0 -> 2.7.1"[0] bump: ``` May 31 01:49:25 <hostname> sh[2269709]: existing file /var/log/atop/atop_20220531 has incompatible header May 31 01:49:25 <hostname> sh[2269709]: (created by version 2.6 - current version 2.7) May 31 01:49:25 <hostname> systemd[1]: atop.service: Main process exited, code=exited, status=7/NOTRUNNING ``` Convert logs in `ExecStartPre` and replace them iff updated. This is to avoid changing original modification times upon every service start and thus work against atop's log rotation (see existing `ExecStartPre`). 0: https://github.com/NixOS/nixpkgs/pull/175180#issuecomment-1141546487
* nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|
* nixos/atop: fix broken wrapperrnhmjoj2021-09-22
| | | | The setuid,owner,group options are mandatory after #126289.
* nixos/atop: Add defaultText for types.package optionsPaul Schyska2021-05-22
| | | | see: https://github.com/NixOS/nixpkgs/pull/123053#discussion_r637205826
* nixos/atop: Split up restart triggers between atop and netatopPaul Schyska2021-05-16
|
* nixos/atop: Add a note about netatop tainting the kernelPaul Schyska2021-05-16
|
* nixos/atop: Never enable setuidWrapper by default, rename service/timer ↵Paul Schyska2021-05-16
| | | | enabling options
* nixos/atop: Add configuration for atop services, allow to enable netatop, ↵Paul Schyska2021-05-16
| | | | gpuatop, allow setuid wrapper
* treewide: remove redundant quotesvolth2019-08-26
|
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|
* nixos: add some missing '.' in option descriptionsBjørn Forsman2014-06-24
|
* Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
| | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10