Commit Graph

15 Commits

Author SHA1 Message Date
Bernardo Meurer
4804f7a09b
nixos/mainsail: init 2023-05-07 01:41:03 -04:00
Zhaofeng Li
385081693e nixos/moonraker: Don't allow Moonraker to validate its systemd service
Our service files are managed by NixOS and different from
the upstream setup. If this is not disabled, Moonraker will
want sudo access to modify the service files directly.
2022-11-19 13:37:37 -07:00
Zhaofeng Li
9411ea9214 nixos/moonraker: Remove database_path
The database_path setting has been deprecated upstream. The database
now lives in `database` under the unified data path. It's same as the
path we've been forcing:

<362bc1a3d3/moonraker/components/database.py (L83)>
2022-11-19 13:37:37 -07:00
Zhaofeng Li
7856ac79ac nixos/moonraker: Deprecate configDir
The config_path setting has been deprecated upstream. Mutable
config files are now supposed to live under the unified data path.
2022-11-19 13:37:37 -07:00
Zhaofeng Li
7658372185 nixos/moonraker: Pass -d (data-path) to moonraker
Moonraker now stores a few more paths under data-path which defaults
to $HOME.
2022-11-19 13:37:37 -07:00
Zhaofeng Li
ce86df4a21 nixos/moonraker: Add zhaofengli as maintainer 2022-11-19 13:37:37 -07:00
cab
e46430d503
nixos.moonraker: version change fixes
Old config locations were deprecated
https://moonraker.readthedocs.io/en/latest/configuration/#option-moved-deprecations.

Also, added PrivateTmp to accomodate for logs being unconditionally
written there.
2022-09-23 11:17:54 +04:00
pennae
ef176dcf7e nixos/*: automatically convert option descriptions
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.
2022-08-31 16:32:53 +02:00
pennae
2e751c0772 treewide: automatically md-convert option descriptions
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.
2022-07-30 15:16:34 +02:00
Zhaofeng Li
0527ccaca7 nixos/moonraker: Grant polkit permissions for system-level operations 2022-03-22 15:35:38 -07:00
Zhaofeng Li
787aaea68e nixos/moonraker: Add iproute2 to path 2022-03-22 15:35:38 -07:00
Graham Christensen
06edb74413
Merge pull request #148785 from pennae/more-option-doc-staticizing
treewide: more defaultText for options
2021-12-17 11:14:08 -05:00
pennae
ed673a69db treewide: add defaultText for options with simple cfg.* expression defaults
adds defaultText for options with defaults that use only literals, full config.*
paths, and the cfg shortcut binding.
2021-12-09 01:14:16 +01:00
pennae
2512455639 nixos/*: add trivial defaultText for options with simple defaults 2021-12-02 22:35:04 +01:00
Zhaofeng Li
5fbdf2ef1f nixos/moonraker: init 2021-08-04 19:48:58 -07:00