about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/ups.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-06-14treewide: fix mkEnableOption usageéclairevoyant1-2/+2
2024-04-13nixos: remove all uses of lib.mdDocstuebinm1-34/+34
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.
2023-12-10nixos/ups: install udev rules for nutIvan Petkov1-0/+1
This is necessary to allow the usbhid driver to successfully send commands to the attached UPS. It is possible to work around this by explicitly using setting the user flag (e.g. `upsdrvctl -u root shutdown`), though it is much simpler to install the udev rules rather than patch things further.
2023-12-02nixos/ups: add {users,upsmon,upsd} config optionsMajiir Paktu1-13/+358
2023-12-02nixos/ups: various fixes & clean upMajiir Paktu1-27/+29
- Ensure NUT_STATEPATH exists (fixes service startup) - Use mode option to enable services (fixes #113735) - Remove extraneous slash in paths (fixes confusing logs) - Support reload for upsmon and upsd - Remove ExecStart wrapper scripts
2023-10-25nixos/ups: replace activationScript via tmpfilesnikstur1-5/+3
2022-12-17nixos: fix typosfigsoda1-2/+2
2022-08-31nixos/*: convert more partially-md option descriptionspennae1-1/+1
this mostly means marking options that use markdown already appropriately and making a few adjustments so they still render correctly. notable for nftables we have to transform the md links because the manpage would not render them correctly otherwise.
2022-07-30treewide: automatically md-convert option descriptionspennae1-11/+11
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.
2021-01-24treewide: fix double quoted strings in meta.descriptionvolth1-1/+1
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
2020-01-06treewide: use attrs instead of list for types.loaOf optionsrnhmjoj1-31/+14
2019-08-31nixos/modules: Remove all usages of types.stringSilvan Mosberger1-2/+2
And replace them with a more appropriate type Also fix up some minor module problems along the way
2019-08-05mass replace "flip map -> forEach"danbst1-1/+1
See `forEach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g' ```
2019-08-05Revert "mass replace "flip map -> foreach""danbst1-1/+1
This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
2019-07-14mass replace "flip map -> foreach"danbst1-1/+1
See `foreach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g' ```
2018-06-30nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink1-2/+2
2017-04-23ups: fix config generationTad Fisher1-1/+1
2016-09-13ups module: optionSet -> submoduleEric Sagnes1-2/+1
2016-09-10treewide: deprecate ip-up.target (#18319)Alexander Ried1-3/+4
Systemd upstream provides targets for networking. This also includes a target network-online.target. In this PR I remove / replace most occurrences since some of them were even wrong and could delay startup.
2016-01-07jobs -> systemd.servicesRobin Gloster1-12/+17
2015-06-15Some more type cleanupEelco Dolstra1-1/+1
2015-06-15types.uniq types.int -> types.intEelco Dolstra1-2/+2
types.int already implies uniqueness.
2014-04-14Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra1-2/+2
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.
2013-10-30Substitute "types.uniq types.string" -> "types.str"Eelco Dolstra1-4/+4
2013-10-10Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra1-0/+275