Commit Graph

1326 Commits

Author SHA1 Message Date
Tristan Ross
8b27c1239e
24.11 beta release 2024-11-14 08:57:15 -08:00
Philip Taron
e50c6cab11
treewide: fix links to specifications.freedesktop.org (#350918) 2024-11-03 09:06:56 -08:00
Maximilian Bosch
9c9b193569
Merge: nixos/users-groups: dump values of password options if multiple options have definitions (#349308) 2024-10-31 10:17:47 +01:00
rnhmjoj
8fafc35158
resolvconf: reliably set group permissions
If `resolvconf` is invoked by a process not running with the resolvconf
group as primary group, other processes will run into trouble as files
or directories under /run/resolvconf won't have write permissions.

This ACL rule ensure that resolvconf files, include new files created by
any process, are always accessible by users of the resolvconf group.
2024-10-25 21:33:30 +02:00
Victor Duarte
f2b58efde4 fix links to specifications.freedesktop.org 2024-10-24 13:00:55 +02:00
David McFarland
403604ca66 resolvconf: use correct output files when used with dnsmasq 2024-10-17 14:20:57 -03:00
Maximilian Bosch
7cb22a0acb
nixos/users-groups: dump values of password options if multiple options have definitions
This was suggested since it might make it a little easier to identify
the places where the definitions come from.

Retrieving the effective definitions from the module-system seems
non-trivial, especially for submodules though, hence only the values are
shown for now.

I'd argue that especially the `password` option are mostly a convenience
thing for test setups. If the password is an actual secret, it should be
treated as such, i.e. `hashedPasswordFile` should be used.

For the `shadow` VM test, the new section of the warning looks like
this:

    The values of these options are:
    * users.users."leo".hashedPassword: "$6$ymzs8WINZ5wGwQcV$VC2S0cQiX8NVukOLymysTPn4v1zJoJp3NGyhnqyv/dAf4NWZsBWYveQcj6gEJr4ZUjRBRjM0Pj1L8TCQ8hUUp0"
    * users.users."leo".hashedPasswordFile: null
    * users.users."leo".password: null
    * users.users."leo".initialHashedPassword: "!"
    * users.users."leo".initialPassword: null
2024-10-17 17:41:34 +02:00
rnhmjoj
52e2e7027d
dhcpcd: fix race between namespace setup and resolvconf
systemd requires paths in `ReadWritePaths=` to exist before setting up
the service sandbox, so dhcpcd should be ordered after resolvconf.
Making resolvconf a oneshot service ensure `After=resolvconf.service`
works correctly.
2024-10-14 08:02:46 +02:00
github-actions[bot]
e9c8665026
Merge master into staging-next 2024-10-05 00:14:01 +00:00
jade
f0ce0e71c3
Remove the revCount attribute from the generated flake registry (#316225) 2024-10-04 15:25:55 -07:00
github-actions[bot]
192fd67cc3
Merge master into staging-next 2024-10-03 18:04:30 +00:00
Christina Sørensen
c911876981
nixos/terminfo: remove broken package contour
Contour was broken for aarch64 in #253334, and completely broke
in #344788 for all platforms.

This removes the broken package, and adds a notice to remove broken
packages in the future. aarch64 users have waited a year for this to be
fixed, so I think we should lean to be more eager to remove in general,
and then the fix can come when it is ready, instead of letting it block
this.

Resolves: #258515
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-10-02 05:56:13 +02:00
github-actions[bot]
8e5ca58e0a
Merge master into staging-next 2024-09-29 12:05:05 +00:00
K900
ce7068660a nixos/xdg/icons: add fallbackThemes option 2024-09-29 08:42:20 +03:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Fabián Heredia Montiel
9b2a506736 Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:

- pkgs/tools/package-management/nix/default.nix
2024-09-22 13:45:27 -06:00
rnhmjoj
19a494135a
nixos/resolvconf: add a resolvconf group
This group is useful to allow specific users to run resolvconf and
(and this modify /etc/resolv.conf) without root privileges.
2024-09-16 01:22:58 +02:00
Matt Moriarity
768db4009e nixos: remove environment.noXlibs 2024-09-15 07:51:45 -06:00
github-actions[bot]
563bb0fbc2
Merge master into staging-next 2024-09-04 18:04:23 +00:00
éclairevoyant
f6306c0961
treewide: fix eval related to with lib; removal 2024-09-04 12:21:09 -04:00
Jan Tojnar
e9179b4fa3 Merge branch 'master' into staging-next 2024-09-01 19:04:04 +02:00
Étienne Simon
b5574c71be
Fix nested quotes in fontconfig.nix
A sed with nested double quotes is inserting malformed XML into /etc/fonts/fonts.conf, this commit put the sed command into single quotes to properly insert double quotes to enclose the XML attribute.
2024-09-01 15:55:12 +02:00
Jan Tojnar
c2f1fa833e gnome-session: Move from gnome scope to top-level 2024-09-01 14:16:31 +02:00
github-actions[bot]
1fdf4b61a4
Merge staging-next into staging 2024-09-01 00:16:33 +00:00
Felix Bühler
7f62309646
nixos/fonts.fontconfig: remove with lib; (#338042) 2024-08-31 22:52:12 +02:00
github-actions[bot]
fab50d5f8d
Merge staging-next into staging 2024-08-31 00:13:46 +00:00
github-actions[bot]
dcad9b571a
Merge master into staging-next 2024-08-31 00:13:18 +00:00
Philip Taron
9916dc8728
treewide/nixos: remove with lib; part 2 (#335618) 2024-08-30 15:56:57 -07:00
Felix Buehler
6db0587bdb nixos/sysctl: remove with lib; 2024-08-30 22:58:31 +02:00
Felix Buehler
3ff6eebd21 nixos/shells-environment: remove with lib; 2024-08-30 22:58:31 +02:00
Felix Buehler
0657aa5509 nixos/i18n: remove with lib; 2024-08-30 22:58:31 +02:00
K900
9729387a99 fontconfig: fix properly, remove NixOS module hack
This reverts 49d33d4a6b.
2024-08-30 10:16:01 +03:00
K900
49d33d4a6b [staging-next] nixos/fontconfig: hack to put everyone's fonts back 2024-08-30 08:53:39 +03:00
Philip Taron
117f3ceb51
treewide/nixos: remove with lib; part 1 (#335603) 2024-08-29 15:42:04 -07:00
Felix Buehler
413bd7cb81 nixos/xdg.sounds: remove with lib; 2024-08-29 23:48:10 +02:00
Felix Buehler
352763b440 nixos/xdg.portal.wlr: remove with lib; 2024-08-29 23:48:09 +02:00
Felix Buehler
f3fff00d96 nixos/xdg.portal.lxqt: remove with lib; 2024-08-29 23:48:09 +02:00
Felix Buehler
62782850ea nixos/xdg.mime: remove with lib; 2024-08-29 23:48:09 +02:00
Felix Buehler
56adb6a6b2 nixos/xdg.menus: remove with lib; 2024-08-29 23:48:09 +02:00
Felix Buehler
1da2c43254 nixos/xdg.icons: remove with lib; 2024-08-29 23:48:09 +02:00
Felix Buehler
7f5a38f100 nixos/xdg.autostart: remove with lib; 2024-08-29 23:48:08 +02:00
Felix Buehler
e50a74b6f9 nixos/vte: remove with lib; 2024-08-29 23:48:08 +02:00
Felix Buehler
a39c4671d8 nixos/environment.unix-odbc-drivers.nix: remove with lib; 2024-08-29 23:48:08 +02:00
Felix Buehler
6232911ef5 nixos/environment.terminfo: remove with lib; 2024-08-29 23:48:08 +02:00
Felix Buehler
d666633846 nixos/environment.paths: remove with lib; 2024-08-29 23:48:07 +02:00
Felix Buehler
21d7a61b1a nixos/environment: remove with lib; 2024-08-29 23:45:31 +02:00
Felix Buehler
c39ad44462 nixos/networking.resolvconf: remove with lib; 2024-08-29 23:45:31 +02:00
Felix Buehler
58258bd170 nixos/powerManagement: remove with lib; 2024-08-29 23:45:31 +02:00
Felix Buehler
d65b7dbb29 nixos/system.nss*: remove with lib; 2024-08-29 23:45:31 +02:00