Commit graph

279 commits

Author SHA1 Message Date
Philip Taron b7090b3216
nixos/cloud-init: fix eval 2025-01-01 12:01:12 -08:00
oxalica acc2ec20ed nixos/earlyoom: format and remove dead code 2024-12-31 18:33:18 -05:00
oxalica b22d47a1b8 earlyoom: use upstream systemd service and add release note 2024-12-31 18:31:16 -05:00
Felix Buehler c05dd62835 nixos/services.uptimed: remove with lib; 2024-12-30 12:09:44 +01:00
Felix Buehler e8c85ce9ab nixos/services.saslauthd: remove with lib; 2024-12-30 12:09:44 +01:00
Felix Buehler 710d6186c1 nixos/services.nscd: remove with lib; 2024-12-30 12:09:44 +01:00
Felix Buehler 0a49bde242 nixos/nix: remove with lib; 2024-12-30 12:09:44 +01:00
Felix Buehler 08f1e99c34 nixos/services.localtimed: remove with lib; 2024-12-30 12:09:44 +01:00
Felix Buehler 128623b2f1 nixos/services.cloud-init: remove with lib; 2024-12-30 12:09:43 +01:00
Felix Buehler 354e3ac4e2 nixos/services.cachix-watch-store: remove with lib; 2024-12-30 12:09:43 +01:00
Felix Buehler 81f97e6d28 nixos/services.cachix-agent: remove with lib; 2024-12-30 12:09:43 +01:00
Felix Buehler fb31348d4d nixos/services.automatic-timezoned: remove with lib; 2024-12-30 12:09:43 +01:00
Arne Keller 61026a1ad0
nixos/dbus: add package options (#347923) 2024-12-20 18:14:17 +01:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Arne Keller 097248f4e0
nixos/nscd: increase default timeout to 10 seconds (#290355) 2024-12-06 13:18:52 +01:00
Bruno BELANYI 35435a647a nixos/localtimed: fix 'geoclue2Package' doc 2024-12-01 10:41:30 +00:00
phanirithvij 80ea320fe7 nixos/swapspace: init module
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
Co-authored-by: Luflosi <luflosi@luflosi.de>
2024-10-30 22:41:15 +05:30
nikstur e81710fa8b
nixos/userborn: fix username typo (#346773) 2024-10-16 17:00:39 +02:00
Sandro Jäckel cfc0d6bee8
nixos/dbus: add package options 2024-10-11 13:38:15 +02:00
Sandro Jäckel 172f25b6ad
makeDBusConf: make overrideable 2024-10-11 13:38:15 +02:00
Sandro Jäckel d957526c06
nixos/dbus: inline once used homeDir 2024-10-11 13:10:19 +02:00
Sebastián Zavala Villagómez 8a277a6abf nixos/automatic-timezoned: set time.timeZone to null to avoid silent overriding
Currently if a timezone was selected explicitly, the service will
silently override the value, essentially ignoring what is meant to be a
a deliberate choice of option. This may cause confusion as to why the
option is not doing anything when this service is enabled, particularly
in more complex set-ups after some time.

This will simply make the choice deliberate from the user's part, either
by having to remove the option or lowering its priority as a recognition
that it may be ignored.

This change was inspired by the `services.tzupdate` module, which does
the same.

[1]: <https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/tzupdate.nix#L24>
2024-10-10 14:33:12 -04:00
Sebastián Zavala Villagómez 1c5727cdf7 nixos/localtimed: set time.timeZone to null to avoid silent overriding
Currently if a timezone was selected explicitly, the service will
silently override the value, essentially ignoring what is meant to be a
a deliberate choice of option. This may cause confusion as to why the
option is not doing anything when this service is enabled, particularly
in more complex set-ups after some time.

This will simply make the choice deliberate from the user's part, either
by having to remove the option or lowering its priority as a recognition
that it may be ignored.

This change was inspired by the `services.tzupdate` module, which does
the same.

[1]: <https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/tzupdate.nix#L24>
2024-10-07 23:40:49 -04:00
Aaron Andersen 38a589083e
nixos/userborn: fix username typo 2024-10-05 21:40:09 -04:00
Parker Hoyes c960ba48d1
nixos/nix-daemon: Enable cgroups delegation (#339310)
When `use-cgroups` is enabled, the nix daemon creates sub-cgroups for the build processes (and itself if NixOS/nix#11412 is merged, see NixOS/nix#9675). `Delegate` should be set to prevent systemd from messing with the nix service's cgroups (https://github.com/systemd/systemd/blob/main/docs/CGROUP_DELEGATION.md) and ensure the OOM killer only targets the offending derivation and not the entire service (NixOS/nix#10374).
2024-09-13 16:08:29 +03:00
Lin Yinfeng 33e796b66f
nixos/userborn: convert users.users.<name>.home to string
If `opts.home` is not a string, an evaluation failure occurs in
`mapAttrs'`. Converting `opts.home` to string solves this issue.

The type of `users.users.<name>.home` is `lib.types.path`. Values
other than strings, e.g., derivations can also have the type
`lib.types.path`.
2024-09-11 18:28:58 +08:00
Lin Yinfeng d3fdfb473d
nixos/userborn: support users.users.<name>.createHome 2024-09-11 18:09:29 +08:00
nikstur 4620067d79 nixos/userborn: init 2024-08-26 12:45:33 +02:00
Johann Wagner 49d137a967 nixos/cloud-init: Allow additional packages in cloud-init module 2024-07-02 19:19:56 +02:00
Johann Wagner 33c55024dc nixos/cloud-init: Allow systemd.network to be enabled if cloud-init.network is disabled 2024-07-02 19:12:30 +02:00
Gavin John 8dcb12dee3 services/localtimed: Add package and geoclue2Package options 2024-06-24 14:36:26 -05:00
h7x4 d8ddf6fb6d
Merge pull request #287611 from h7x4/nixos-module-fixup-kerberos-server
nixos/kerberos_server: use krb format generator, plus misc cleanup
2024-06-14 17:04:55 +02:00
h7x4 195d155a1c
nixos/kerberos_server: use krb format generator, plus misc cleanup
- Introduce more possible options by using the krb format generator.
- Enforce package choice is using a correct package.
- Use meta attribute to decide implementation, allows for overriding the
  package.
- Make necessary changes to the format, to allow for multiple ACL files in
  heimdal.
- Add systemd target and slice for both implementations.
- Move state to `/var/lib`
- Add documentation
2024-06-08 23:29:53 +02:00
Sandro Jäckel 1c60f0a9a0 nixos/bash-completion: move options to programs.bash.completion, add package option, drop with lib
This allows to easily test bash-completion updates without triggering a mass rebuild locally.
2024-06-06 02:51:06 +02:00
Will Fancher dd0ebdffcd nixos/systemd-stage-1/dbus: Fix systemd services 2024-05-21 20:55:37 -04:00
Sandro Jäckel 21ab17debe
nixos/dbus: fix switching from dbus-broker to dbus 2024-05-04 21:56:17 +02:00
Florian Klink b0d99c50c0 Revert "dbus: Switch default implementation to broker"
This reverts commit e827697fd3.

This seems to cause various issues during system activation, as reported
in https://github.com/NixOS/nixpkgs/issues/302771 for example.

Due to being close to branchoff, revert this for now.
We'll open a tracking issue to collect and sort out remaining issues.
2024-04-29 14:58:37 +03:00
Anderson Torres cef01a232d services.earlyoom: set package option
Also add AndersonTorres as maintainer.
2024-04-19 09:58:27 -03:00
stuebinm 6afb255d97 nixos: remove all uses of lib.mdDoc
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.
2024-04-13 10:07:35 -07:00
Jörg Thalheim d79ff2f15b
Merge pull request #241816 from Mic92/cloud-init
nixos/cloud-init: enable filesystem based on what is configured
2024-04-09 19:42:45 +02:00
Sandro Jäckel 476b8c276e
treewide: rename renamed sddm/displayManager settings 2024-04-08 21:56:38 +02:00
zimbatm dc396ffe85 nixos/cloud-init: remove syslog.target from services
It has been removed from systemd, see NixOS#149721.
2024-04-04 19:11:16 +02:00
LDprg f53b77fe44 dbus-broker: Add dbus for dbus tools to environment.systemPackages 2024-04-04 01:32:45 -07:00
LDprg e827697fd3 dbus: Switch default implementation to broker 2024-04-04 01:32:45 -07:00
Domen Kožar 8f582b0ebb nsncd: 3 seconds is way too low for a default timeout 2024-02-21 06:44:58 +00:00
Maxime Brunet 5c1c4c75f7 automatic-timezoned: 1.0.148 -> 2.0.0 2024-02-18 15:01:25 -08:00
Olli Helenius e103c5cfcf
nixos/systemd-lock-handler: init 2024-01-27 11:55:46 +02:00
Linus Heckemann 18e5176621
Merge pull request #270727 from nikstur/nixos-perlless-activation
Perlless Activation
2024-01-22 10:11:44 +01:00
maxine f0dd758da7
Merge pull request #273707 from illustris/cloud-init
cloud-init: 23.3.3 -> 23.4.1, fix race condition on AWS
2024-01-21 00:39:06 +01:00
Jade Lovelace 6c5ab28fce nixos: fix a bunch of services missing dep on network-online.target
This was done by generating a truly hilarious configuration:

rg 'services\.[^.]+\.enable\t' opts-tags | cut -f1 > allonconfig.nix

The following were not tested due to other evaluation errors. They
should probably be manually audited.
services.amule
services.castopod
services.ceph
services.chatgpt-retrieval-plugin
services.clamsmtp
services.clight
services.dante
services.dex
services.discourse
services.dwm-status
services.engelsystem
services.foundationdb
services.frigate
services.frp
services.grocy
services.guacamole-client
services.hedgedoc
services.home-assistant
services.honk
services.imaginary
services.jitsi-meet
services.kerberos_server
services.limesurvey
services.mastodon
services.mediawiki
services.mobilizon
services.moodle
services.mosquitto
services.nextcloud
services.nullmailer
services.patroni
services.pfix-srsd
services.pgpkeyserver-lite
services.postfixadmin
services.roundcube
services.schleuder
services.self-deploy
services.slskd
services.spacecookie
services.statsd
services.step-ca
services.sympa
services.tsmBackup
services.vdirsyncer
services.vikunja
services.yandex-disk
services.zabbixWeb
2024-01-19 00:11:34 -08:00