Commit Graph

24279 Commits

Author SHA1 Message Date
Vanilla
844ff435f5 nixos/virtualisation/linode-image: Migrate to new openssh options. 2023-02-13 14:59:03 +01:00
Moritz 'e1mo' Fromm
166ff19144 nixos/dokuwiki: remove last reference to aclUse
This was overlooked in #209299, but will throw a trace when building a
system even when the setting was not set.
2023-02-13 14:59:00 +01:00
Marin
2bffc1adf1 nixos/yubikey-agent: Add dependency to pcsd.service
Issue: after installing, running `yubikey-agent -setup` produces the
following error:
```
nixOS: Failed to connect to the YubiKey: connecting to pscs: the Smart
card resource manager is not running
```

More on this issue: https://github.com/FiloSottile/yubikey-agent/issues/137
2023-02-13 14:58:55 +01:00
Andreas Stührk
324fda3bac nixos/envoy: add option requireValidConfig to make config validation errors non-fatal
Co-authored-by: Vincent Haupert <vincent@yaxi.tech>
2023-02-13 14:58:53 +01:00
Vincent Haupert
35c8e5ed44 nixos/envoy: add package option 2023-02-13 14:58:52 +01:00
Vincent Haupert
91cc3b6663 nixos/envoy: further service hardening 2023-02-13 14:58:52 +01:00
Vincent Haupert
5641378f1c nixos/envoy: sort serviceConfig entries 2023-02-13 14:58:52 +01:00
Vincent Haupert
6905ec0d57 nixos/envoy: use lists in serviceConfig where appropriate
Using type `list` instead of `str` in `serviceConfig` entries which
accept multiple values allows easier extension of the unit
configuration.
2023-02-13 14:58:52 +01:00
Craig Hall
12ee6776f5 nixos/hostapd: Enable 802.11n / 802.11ac by default 2023-02-13 14:58:37 +01:00
Craig Hall
0975fe9d3c nixos/hostapd: Disable insecure TKIP by default
It's possible that setting wpa=2 disables TKIP anyway, but on my machine
I could not get 802.11n to work without setting rsn_pairwise=CCMP.
N.B. rsn_pairwise takes its default from wpa_pairwise.
2023-02-13 14:56:50 +01:00
Craig Hall
f35c374a33 nixos/hostapd: Remove blank default for cfg.interface
Leaving this blank leads to a confusing error about systemd unit dependencies.
2023-02-13 14:56:50 +01:00
Tom Hubrecht
461ae37eff nixos/onlyoffice: Fix initial permissions for the documentserver data 2023-02-13 14:56:37 +01:00
nikstur
af06e0562f nixos/systemd-repart: init 2023-02-13 14:56:36 +01:00
bb2020
3f60856c7b nixos/udisks2: add mountOnMedia option 2023-02-13 14:56:32 +01:00
1sixth
bac42c66aa nixos/nitter: add replaceReddit option 2023-02-13 14:56:24 +01:00
bb2020
631fe8d943 nixos/minidlna: minor changes 2023-02-13 14:56:12 +01:00
Alper Çelik
b15d6812fc nixos/plasma5: use vlc phonon backend by default 2023-02-13 14:56:10 +01:00
Alvar Penning
b0f7820251 nixos/ympd: Unit hardening
Next to some systemd unit hardening, the nobody user isn't used anymore,
as suggested in #55370.
2023-02-13 14:56:05 +01:00
Izorkin
f849e64c0a nixos/systemd-coredump: fix group id 2023-02-13 14:55:52 +01:00
IndeedNotJames
e7aa70d2ea nixos/caddy: fix caddy fmt for caddy v2.6.3
The nixos module uses `caddy fmt` to *format* the generated Caddyfile.
v2.6.3 slightly altered `caddy fmt`'s behavior.

Excerpt from https://github.com/caddyserver/caddy/releases/tag/v2.6.3
> cmd: caddy fmt return code is 1 if not formatted
> cmd: fmt exit successfully after overwriting config file

Which is why the internal `Caddyfile-formatted` now uses `cp` and `caddy fmt --overwrite` instead
2023-02-13 14:55:51 +01:00
Yueh-Shun Li
29f92eb0e9 apptainer, singularity: enable non-FHS --fakeroot support
This patch provides input arguments `newuidmapPath` and `newgidmapPath`
for apptainer and singularity to specify the path to the SUID-ed executables
newuidmap and newgidmap where they are not available from the FHS PATH.

As NixOS places those suided executables in a non-FHS position
(/run/wrapper/bin), this patch provides
programs.singularity.enableFakeroot option and implement with the above
input parameters.
2023-02-13 14:55:43 +01:00
Yueh-Shun Li
3477455404 apptainer, singularity: fix defaultPath and reflect upstream changes
Upstream changes:
singularity 3.8.7 (the legacy) -> apptainer 1.1.3 (the renamed) / singularity 3.10.4 (Sylabs's fork)

Build process:
*   Share between different sources
*   Fix the sed regexp to make defaultPath patch work
*   allowGoReference is now true
*   Provied input parameter removeCompat (default to false)
    that removes the compatible "*singularity*" symbolic links
    and related autocompletion files when projectName != "singularity"
*   Change localstatedir to /var/lib
*   Format with nixpkgs-fmt
*   Fix the defaultPath patching
    and use it instead of the `<executable> path` config directive
    deprecated in Apptainer
*   Provide dependencies for new functionalities such as
    squashfuse (unprivileged squashfs mount)
*   Provide an attribute `defaultPathInputs` to override
    prefix of container runtime default PATH

NixOS module programs.singularity:
*   Allow users to specify packages
*   Place related directories to /var/lib
*   Format with nixpkgs-fmt

singularity-tools:
*   Allow users to specify packages
*   Place related directories to /var/lib when building images in VM
2023-02-13 14:55:43 +01:00
Yueh-Shun Li
a2103f41c5 nixos/modules/programs/singularity.nix: format expression 2023-02-13 14:55:42 +01:00
Sandro Jäckel
a7f99ea0e7 nixos/envfs: add extraFallbackPathCommands options
this is mainly useful for restricted platforms like wsl which require
some extra entries in /bin/
2023-02-13 14:55:37 +01:00
Sandro Jäckel
badd06f1cf nixos/envfs: use configured environment.usrbinenv and environment.binsh
Taken from upstream
d91aeefccb
2023-02-13 14:55:37 +01:00
pennae
2610f45516 nixos/*: remove trailing period in mkEnableOptions
those are added by mkEnableOption, and .. is replaced to … by markdown
processing.
2023-02-13 14:55:34 +01:00
pennae
cb12267aa0 nixos/x11: fix some docs links
the docbook stylesheets duplicated the target of these untitled links
into their label, but we should do that in markdown instead.
2023-02-13 14:55:34 +01:00
K900
0d0560e42f nixos/plasma5: install kio-admin for desktop 2023-02-13 14:55:32 +01:00
Winter
c6eea1fe9e nixos/luksroot: build pbkdf2-sha512 binary in its own derivation
Since this feature's inception, we've compiled a binary that uses OpenSSL
to perform PBKDF-SHA512 during the extra-utils build. In addition to this
being inefficient, it broke as of 6ea1a2a1be,
which switched the extra-utils derivation to use stdenvNoCC.

For now, I think the path of least resistence is to move the pbkdf-sha512
build to its own derivation, to fix the breakage, as well as improving
the efficiency of the extra-utils build.

(I do believe that at some point, we should revisit this binary -- perhaps
rewriting it -- as Clang even just on its default settings emits more
warnings than you'd want to see in a security-related codebase when
compiling it.)
2023-02-13 14:55:28 +01:00
Matt McHenry
e64c18f259 k3b: use cdrecord from cdrtools rather than cdrkit
fixes this warning:

cdrecord <= 2.01.01a05 will be run with root privileges on kernel >= 2.6.8
Since Linux kernel 2.6.8 cdrecord <= 2.01.01a05 will not work when run suid root for security reasons anymore.
2023-02-13 14:55:23 +01:00
Will Fancher
bfbc47b7e9 initrd-ssh: New sshd settings names 2023-02-13 14:55:17 +01:00
Will Fancher
60ed98f364 sshd: Cyphers -> Ciphers 2023-02-13 14:55:17 +01:00
paumr
3e76f5e882 nixos/roundcube: fixed nginx configuration
the changes are required for oauth setups,
and are based on:
https://github.com/roundcube/roundcubemail/issues/8191#issuecomment-919850328
2023-02-13 14:55:08 +01:00
Googlebot
c55e0b2b85 fix logic 2023-02-13 14:55:02 +01:00
Googlebot
bffc4efcc6 nvidia: Reverse Prime Sync 2023-02-13 14:55:02 +01:00
Janik H
fd3a940590 qdmr: fixup 2023-02-13 14:54:55 +01:00
Vanilla
ece53fc882 nixos/pykms: rename systemd deprecated MemoryLimit to MemoryMax. 2023-02-13 14:54:55 +01:00
Nick Cao
3705889881 nixos/zram: fix default swapDevices 2023-02-13 14:54:53 +01:00
gbtb
01b0855df6 nixos/openvpn: applied nixpkgs-fmt 2023-02-13 14:54:51 +01:00
gbtb
5c9f1ee2db nixos/openvpn: added restartAfterSleep option
Additional systemd unit that hooks to sleep.target and kills openvpn processes
2023-02-13 14:54:51 +01:00
Matthieu Coudron
a083d028dd services.openssh: rename several settings (#211991)
* services.openssh: rename several settings

... to match the sshd config format (makes transition smoother), namely:
services.openssh.forwardX11 -> services.openssh.settings.X11Forwarding
services.openssh.cyphers -> services.openssh.settings.Cyphers
services.openssh.macs -> services.openssh.settings.Macs
services.openssh.kexAlgorithms -> services.openssh.settings.KexAlgorithms
services.openssh.gatewayPorts -> services.openssh.settings.GatewayPorts

* release-notes: mention openssh renaming

* chore: regenerated release-notes
2023-02-13 14:54:49 +01:00
Sandro
d7849e6a8c nixos/nginx: add comment about clearing Connection header (#214211) 2023-02-13 14:54:47 +01:00
Morgan Jones
3b4b7edd3e nixos/nebula: harden systemd unit 2023-02-13 14:54:46 +01:00
Morgan Jones
c673aea520 nixos/nebula: add tests for relays; clean up nebula passthru test 2023-02-13 14:54:46 +01:00
Morgan Jones
43e04dc8eb nixos/nebula: don't run as root; support relays 2023-02-13 14:54:46 +01:00
Maximilian Bosch
629c2b0e3d privacyidea: fix build
The previous changes for the 3.8 update are ready, but staging got
merged into master, so there are a few more challenges to tackle:

* Use python 3.10 now since it's actually supported and less effort to
  build (3.9 isn't recursed into anymore).
* sphinx doesn't build with these overrides, so patch it out entirely
  (i.e. drop `sphinxHook` where it's causing problems).
* backport a few jinja2 fixes for python 3.10 that were fixed in later
  versions, but break because this env is stuck to 2.11.
2023-02-13 14:54:42 +01:00
Maximilian Bosch
9deaaeda37 nixos/privacyidea: fix db uri
Fixes db migration on 3.8. See also https://github.com/privacyidea/privacyidea/issues/3447
2023-02-13 14:54:42 +01:00
Thomas Gerbet
a93855bbe1 meilisearch: 0.30.5 -> 1.0.0
https://github.com/meilisearch/meilisearch/releases/tag/v1.0.0
2023-02-13 14:54:40 +01:00
lucasew
6036176afc nixos/cockpit: init
Signed-off-by: lucasew <lucas59356@gmail.com>
2023-02-13 14:54:40 +01:00
Izorkin
91572904f2 nixos/no-x-libs: add mc 2023-02-13 14:54:35 +01:00