Commit Graph

1326 Commits

Author SHA1 Message Date
Felix Buehler
87c8da00fa nixos/environment.noXlibs: remove with lib; 2024-08-29 23:45:31 +02:00
Felix Buehler
b5b0edaf37 nixos/networking: remove with lib; 2024-08-29 23:45:30 +02:00
Felix Buehler
dd7e20e16a nixos/environment.memoryAllocator: remove with lib; 2024-08-29 23:45:30 +02:00
Felix Buehler
88e6e9d4ac nixos/time: remove with lib; 2024-08-29 23:45:30 +02:00
Felix Buehler
e514851c46 nixos/networking.iproute2: remove with lib; 2024-08-29 23:45:30 +02:00
Felix Buehler
6b9c5be4a6 nixos/gtk.iconCache: remove with lib; 2024-08-29 23:45:29 +02:00
Felix Buehler
7fece7e8ca nixos/fonts.enableGhostscriptFonts: remove with lib; 2024-08-29 23:45:29 +02:00
Felix Buehler
58baef7c2c nixos/fonts.fontDir: remove with lib; 2024-08-29 23:45:29 +02:00
Felix Buehler
3ad0220687 debug-info: remove with lib; 2024-08-29 23:45:29 +02:00
Felix Buehler
9da369764a nixos/console: remove with lib; 2024-08-29 23:45:29 +02:00
Felix Buehler
624f590fba nixos/appstream: remove with lib; 2024-08-29 23:45:28 +02:00
Philip Taron
958348782d
nixos/users.mysql: remove with lib; (#338043) 2024-08-29 14:41:10 -07:00
Felix Buehler
15b6c50fa9 nixos/users.mysql: remove with lib; 2024-08-29 23:35:25 +02:00
Philip Taron
ae92f312bf
treewide: use a consistent meta.priority default 2024-08-29 09:04:57 -07:00
Felix Buehler
7c7e3d1810 nixos/fonts.fontconfig: remove with lib; 2024-08-29 00:16:54 +02:00
Felix Buehler
18485b25ad nixos/hardware.pulseaudio: remove with lib; 2024-08-26 21:28:10 +02:00
Philip Taron
04a8c1e764
Merge pull request #328030 from Wulfsta/swap-status 2024-08-13 07:05:46 -07:00
Sandro
b67ad15b55
Merge pull request #318635 from SuperSandro2000/nix-trusted-user 2024-08-06 11:40:00 +02:00
Naxdy
632da75711
nixos/xdg/portal: remove deprecated option gtkUsePortal 2024-07-31 11:27:11 +02:00
Sandro Jäckel
280e9a5ca4
nixos/nix: move trusted-user to config
This avoids having to define root when trying to add another user as
trusted user, similar to the other options.
2024-07-30 18:18:57 +02:00
Vladimír Čunát
a5b2fe7374
Merge #328673: staging-next 2024-07-20 2024-07-28 13:45:55 +02:00
Robert Hensing
4ca52fdf5f
Merge pull request #323613 from CyberShadow/fix-nix-path-without-channels-v2
nix-channel: do not set empty nix-path when disabling channels
2024-07-28 13:31:10 +02:00
Vladimír Čunát
64c6a981fe
Merge branch 'master' into staging-next 2024-07-27 09:18:58 +02:00
nicoo
9587ddd261
nixos/nix-channel: don't set nix-path (#327683)
Otherwise, the empty path in `nix.conf` takes precedence over `NIX_PATH`,
and by extension the `nix.nixPath` configuration option.

Introduced in 61afc4d166.
2024-07-26 19:19:38 +00:00
github-actions[bot]
a6c20a7387
Merge staging-next into staging 2024-07-19 12:01:49 +00:00
Philip Taron
c67ed48869
nixos/ldap: avoid top-level with expression (#327992) 2024-07-19 11:19:51 +02:00
Martin Weinelt
983077457f
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
-	pkgs/development/python-modules/uvcclient/default.nix
-	pkgs/development/tools/rust/rust-analyzer/default.nix
2024-07-18 12:35:33 +02:00
Wulfsta
f2f8f302fd nixos/swap: add progress to swapfile creation 2024-07-17 17:33:03 -04:00
Artturin
20cf80e167 Merge branch 'staging-next' into staging 2024-07-17 21:29:37 +03:00
Philip Taron
33a4732e46
nixos/swap: avoid top-level with expressions (#327991) 2024-07-17 20:23:14 +02:00
Philip Taron
1438803fb5
nixos/users-groups: avoid top level with lib; use lib before builtins (#327757) 2024-07-17 20:00:54 +02:00
Robert Hensing
2d9a686483 nixos/nix-channel.nix: shellcheck and fix the activation check 2024-07-16 22:09:33 +02:00
Robert Hensing
34fee8c804 nixos/nix-channel: Highlight and tidy the warnings 2024-07-16 21:34:40 +02:00
Vladimir Panteleev
1e6acabaeb
nix-channel: do not set empty nix-path when disabling channels
An empty nix-path in nix.conf will disable NIX_PATH environment variable
entirely, which is not necessarily implied by users who want to disable
nix channels. NIX_PATH also has some usages in tools like nixos-rebuild
or just as user aliases.

That change is surprising and debatable, and also caused breakages in
nixpkgs-review and user configs.

See:
- https://github.com/NixOS/nixpkgs/pull/242098/files#r1269891427
- https://github.com/Mic92/nixpkgs-review/issues/343
- https://github.com/NixOS/nix/pull/10998

Co-authored-by: oxalica <oxalicc@pm.me>
2024-07-14 18:17:16 +00:00
Emily
f9eee6b0a7 ffmpeg_5: drop 2024-07-14 08:35:56 +01:00
K900
3eeff54780 nixos/alsa: kill sound.enable and friends with fire 2024-07-13 13:56:18 +03:00
Aleksana
e04b0e7323
Merge pull request #326162 from jopejoe1/vim-refactor
nixos/vim: add enable option and link `/share/vim-plugins` only when …
2024-07-11 21:35:06 +08:00
jopejoe1
5f56edf0b9 nixos/vim: add enable option and link /share/vim-plugins only when vim is enabled 2024-07-11 08:08:12 +02:00
jopejoe1
a9007d0831 nixos/nano: only link /share/nano when nano is enabled 2024-07-10 20:29:50 +02:00
Sandro
96b59d07fb
Merge pull request #308779 from SuperSandro2000/shells-environment-followup 2024-07-10 16:48:15 +02:00
Tom Butler
e7e8ad1e35
nixos: Set home directory parent tree permissions to 0755
When the user's home directory is created using `createHome` e.g.

```
users.users.alice = {
    home = "/users/alice";
    createHome = true;
};
```

The `/users` directory was created with the same permissions as `/users/alice`, `0700` by default.

The parent directory `/users` permissions results in `createHome` creating a home directory that is inaccessible to the user:

```
$ su alice
$ cd /user/alice
cd: permission denied: /users/alice
```

The underlying cause is `make_path($u->{home}, { mode => oct($u->{homeMode}) })` which sets, in the example above`, `/users` to `0700`. Instead it should be `0755` like other system directories `/var`, `/dev`, etc.
2024-07-09 23:09:09 +02:00
github-actions[bot]
5a601bc241
Merge master into staging-next 2024-07-06 06:01:20 +00:00
Ali Rizvi
ab98e84e0d
nixos/stevenblack: rework to use distinct package outputs 2024-07-05 23:30:26 -04:00
github-actions[bot]
c6707a9686
Merge staging-next into staging 2024-06-21 12:01:53 +00:00
Robert Hensing
ba5a6f19ed
Merge pull request #312516 from Stunkymonkey/nixos-swap-umask
nixos/swap: prefer 'umask' over 'chmod'
2024-06-20 20:06:13 +02:00
Martin Weinelt
f822b2ba5c Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
- pkgs/development/python-modules/langsmith/default.nix
- pkgs/development/python-modules/rich-pixels/default.nix
- pkgs/servers/teleport/generic.nix
2024-06-18 20:16:19 +02:00
Aleksana
ee9cf00e6d
Merge pull request #315240 from Cryolitia/ghost-font
ghostscript: add output `fonts`
2024-06-15 19:32:39 +08:00
Sandro Jäckel
131ef6d2ed
nixos/no-x-libs: fix gjs
Due to the switch to finalAttrs, we now need to properly disable installTests.
2024-06-08 21:46:14 +02:00
Bobby Rong
6051698052
Merge pull request #314695 from nonetrix/patch-1
nixos/xdg/portal: Fix typo
2024-06-04 13:27:16 +08:00
r-vdp
1d160e9cc1
Remove the revCount attribute from the generated flake registry
The revCount attribute is only present when the flake is an actual git
repo and not when using a flake reference with an input scheme for a git
forge that downloads tarballs instead (like github: or sourcehut:).
Because of this, the hash of the nixos config changes depending on
whether the config was built from a local git clone or from a flake ref
using one of those input schemes.
This leads to confusion (I lost quite some time figuring out what
happened here) and unnecessary rebuilds.
To my knowledge, there is no immediate benefit to including revCount in
the flake registry entry.
2024-05-31 20:31:41 +02:00
北雁 Cryolitia
93a9ca34fe
ghostscript: add output fonts 2024-05-28 11:50:34 +08:00
Sandro
77e9384f0f
Merge pull request #314428 from SuperSandro2000/nox-gst 2024-05-27 14:03:46 +02:00
Izorkin
3381fdd745
nixos/no-x-libs: add pinentry-tty 2024-05-27 00:22:07 +03:00
Sandro Jäckel
db66127c5b
nixos/no-x-libs: make sure gst-plugins-base has enableGl disabled 2024-05-26 20:51:00 +02:00
Sandro Jäckel
cb58275dc6
nixos/no-x-libs: build gst-plugins-rs without gtk 2024-05-26 20:51:00 +02:00
fuggy
ef5ff2a075
nixos/xdg/portal: Fix typo
There was a typo that misspelled /etc/ as /etx/
2024-05-25 17:26:15 -05:00
Sandro Jäckel
b9ec2c14d8
nixos/no-x-libs: fix mpv build by disabling drmSupport, disable more GUI only relevant features 2024-05-25 02:36:13 +02:00
Sandro Jäckel
2a8e5155c9
nixos/no-x-libs: add libplacebo 2024-05-25 02:36:12 +02:00
nessdoor
633479572e
nixos/nsswitch: add support for overriding sudoers entries (#310818) 2024-05-20 12:28:31 -04:00
Felix Buehler
615d19beb3 nixos/swap: prefer 'umask' over 'chmod' 2024-05-16 23:53:47 +02:00
Jared Baur
91d7945974
nixos/terminfo: always use buildPlatform's terminfo (#309108)
Many terminal packages don't cross compile, so the `terminfo`
 NixOS module was not usable for nixos configurations that are
 cross-compiled.

Terminfo files (AFAIK) are small files that contain data about
 terminal capability, so they should never have any runtime
 dependencies that would cause any executables or otherwise
 incompatible outputs from the `buildPlatform` to leak into the
 nixos config's closure.
2024-05-06 09:04:43 +00:00
北雁 Cryolitia
04a7f3c371
nixos/xdg-terminal-exec: init module 2024-05-05 02:06:43 +08:00
Sandro Jäckel
d917bac7c5
nixos/shells-environment: allow lists of paths 2024-05-03 13:44:03 +02:00
Sandro Jäckel
ed38b9699a
nixos/shells-environment: copy paths to the store again like before #276818 2024-05-03 13:43:43 +02:00
Sandro Jäckel
21202fe8a4
nixos/shells-environment: remove floats again because of their unpredictable formatting 2024-05-03 13:43:20 +02:00
Sandro
a534c335e0
Merge pull request #307553 from SuperSandro2000/gst-plugins-good-nox
nixos/no-x-libs: disable more GUIs for gst_all_1.gst-plugins-good
2024-05-01 20:08:13 +02:00
Sandro Jäckel
08a681689f
nixos/no-x-libs: disable more GUIs for gst_all_1.gst-plugins-good 2024-04-28 22:14:08 +02:00
Sandro
c960becaf8
nixos/no-x-libs: add ffmpeg, ffmpeg_6, ffmpeg_7 2024-04-28 18:27:19 +02:00
Peder Bergebakken Sundt
01a730b41e
Merge pull request #266540 from surfaceflinger/hardened-malloc-light
graphene-hardened-malloc: migrate to by-name, build light variant
2024-04-26 15:05:09 +02:00
nat
af65b87b23
nixos/malloc: add graphene-hardened-light 2024-04-18 23:19:46 +02:00
Sandro Jäckel
c5371710de
nixos/shells-environment: allow int and float in environment variables 2024-04-17 22:36:19 +02:00
Daniel Fullmer
68142254d2 nixos/zram: add compression algorithms to option enum
These options are available on a standard NixOS system, which can be
seeing by running `cat /sys/devices/virtual/block/zram0/comp_algorithm`.
2024-04-16 15:39:31 -07: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
Janik
aeeedb0b60
Merge pull request #302608 from nbdd0121/dns
nixos/resolvconf: fix useLocalResolver when IPv6 is enabled
2024-04-12 21:59:42 +02:00
Janik
bf69641481
Merge pull request #296584 from Schweber/master
nixos/resolvconf: add option "trust-ad" when `useLocalResolver` is enabled
2024-04-12 21:54:24 +02:00
Bjørn Forsman
a29010fe79 nixos: improve many 'enable' descriptions 2024-04-09 07:10:17 +02:00
Gary Guo
eb91bc05bd nixos/resolvconf: fix useLocalResolver when IPv6 is enabled
resolvconf.conf is a shell script and unlike resolv.conf, multiple
nameservers are specified by space separating them instead of adding
multiple lines.

Fixes: fc060cc3cb
2024-04-08 16:45:35 +01:00
edef
725bb4e48c lib: add xor
This gets clumsily reimplemented in various places, to no useful end.
2024-04-04 19:46:58 +00:00
Adam Stephens
790fb86a7f
nixos/users-groups: move linger to oneshot and add nixos test 2024-03-21 19:51:05 -04:00
Adam Stephens
564c3749d9
nixos/users-groups: fix broken linger 2024-03-21 13:47:15 -04:00
Silvan Mosberger
308671dbe8 nixos/nix: Fix example for nix.settings option
Attribute sets aren't valid option values, needs to be a list
2024-03-19 22:55:19 +01:00
Schweber
beb139496a
nixos/resolvconf: add option "trust-ad" when useLocalResolver is enabled 2024-03-17 07:52:00 +00:00
Guillaume Girol
1f26e67560
Merge pull request #278064 from symphorien/nix_config_extra
nixos/nix: add workaround for https://github.com/NixOS/nix/issues/9487
2024-03-15 22:46:51 +01:00
Janik H.
fc060cc3cb nixos/resolvconf: add ::1 as local dns resolver 2024-03-15 19:31:37 +01:00
Sandro
c86e8fd7a0
Merge pull request #133542 from fpletz/refactor/pinentry-remove-multiple-outputs
pinentry: remove multiple outputs
2024-03-09 23:57:27 +01:00
Jordan Williams
8558d7b1ce
nixos/users-groups: Fix the update-lingering activation script failing
The update-lingering activation script currently fails during rebuilds.
This happens when removing a user with linger enabled.
The call to loginctl disable-linger runs for the non-existent user.
This returns an error code which causes the failure.

To mitigate this, this PR removes any residual linger files.
These are files named for the user in /var/lib/systemd/linger.
A simple check for user existence determines whether to delete the file.
This happens before the call to disable-linger to avoid any errors.

Fixes #283769.
2024-03-03 12:00:25 -06:00
Guillaume Girol
5b274d5f01 nixos/nix: add workaround for https://github.com/NixOS/nix/issues/9487
Nix has a suprising behavior where if the option `extra-foo` is set before `foo`, then setting `foo` overwrites the setting for `extra-foo`. This is reported as https://github.com/NixOS/nix/issues/9487, and will likely not be fixed any time soon.

This works around this issue by always putting `extra-*` settings after non-extra ones in the nixos-generated `/etc/nix.conf`.
2024-03-03 17:03:46 +01:00
Franz Pletz
764d15f59f
pinentry: remove multiple outputs package
fixes #133156 #124753
2024-03-02 17:16:53 +01:00
github-actions[bot]
a3e2b0de90
Merge master into staging-next 2024-02-24 12:01:15 +00:00
Colin
a65967a12c nixos/nix: documentation: fix outdated reference to /etc/nix.conf 2024-02-24 21:29:38 +11:00
github-actions[bot]
2ad339408a
Merge staging-next into staging 2024-02-18 00:02:44 +00:00
Sandro
d12bb5b983
Merge pull request #213783 from SuperSandro2000/nox-vte
nixos/vte: use vte without any GUI dependencies; nixos/no-x-libs: add vte
2024-02-17 20:55:54 +01:00
github-actions[bot]
8bc9edd60d
Merge staging-next into staging 2024-02-17 18:01:24 +00:00
Jan Tojnar
f896ce73af
Merge pull request #268197 from jtojnar/xdp-variable-changes
xdg-desktop-portal: Use custom variable for finding portals
2024-02-17 14:18:55 +01:00
github-actions[bot]
daaa4e1653
Merge staging-next into staging 2024-02-17 00:02:47 +00:00
Linus Heckemann
5863c27340
Merge pull request #287506 from Ma27/warn-user-password-options
nixos/users-groups: warn on ambiguous password settings
2024-02-16 22:20:38 +01:00
Izorkin
fdf77d10cb
nixos/no-x-libs: build pipewire without vulkan support 2024-02-16 09:21:00 +03:00
Jonas Chevalier
c3ef726ee1
nixos/ldso: avoid instance of nixpkgs (#288509)
Follow-up to #269551

Avoid creating a new instance of nixpkgs to access two variables.
`pkgs.pkgsi686Linux` was being accessed whenever the feature is being
used or not.

A second instance of nixpkgs is being created in
`nixos/modules/config/stub-ld.nix` and can be disabled by setting
`environment.ldso32 = null` or `environment.stub-ld.enable = false`.

Both combined fixes this error:

    error: attribute 'i686-linux' missing
2024-02-15 13:01:03 +01:00
Jan Tojnar
fe40e99020 nixos/xdg/portal: Use systemPackage instead of buildEnv
Portals are global so we can just link them globally.

There might, in theory, be some unexpected system-path contamination
(e.g. when a portal package installs its executables to `/bin`)
but I think the risk is relatively minor compared to the added complexity.

While at it, let’s point the environment variable to system-path.
That will allow changes to installed portals to apply without having to re-log in.
2024-02-11 03:32:47 +01:00
Jan Tojnar
3b2f55e89f xdg-desktop-portal: Use custom variable for finding portals
x-d-p only looks for portal definitions in one of two places:
- datadir (which we cannot install anything to, since Nix packages are immutable)
- when `XDG_DESKTOP_PORTAL_DIR` environment variable is set, the path specified therein
  (meant for tests, disables looking for portal configuration anywhere else)

Let’s introduce our own `NIX_XDG_DESKTOP_PORTAL_DIR` environment variable
that will only control the portal definitions lookup.
We will not use it for searching for configuration
because it would require looking in the parent directory
and `XDG_CONFIG_DIRS` variable is sufficient for us.
2024-02-11 03:21:55 +01:00