Commit Graph

1457 Commits

Author SHA1 Message Date
Vladimír Čunát
c92e61274d staging-nixos merge for 2025-11-12 (#460995) 2025-11-12 18:09:33 +00:00
Grimmauld
1d19809402 linger-users: default to null, be explicit about null = imperative 2025-11-10 23:06:36 +01:00
Grimmauld
28366c6446 linger-users: Fix strict shell checks, fix for mutable users (#363209) 2025-11-10 09:37:32 +00:00
Adam Dinwoodie
531d3a9a45 linger-users: allow disabling for bashless profile
The linger-users systemd unit runs a Bash script.  To allow this to be
avoided for the bashless profile, provide an option to have NixOS not
manage lingering for any users.

To make this feasible, add the possibility for each individual user
account to not have its lingering configuration managed by NixOS at all,
and make this the default from 26.05.  In practice, this won't result in
a change of behaviour except for people who manually use `loginctl
enable-linger` commands to add lingering for some user accounts, then
rely on NixOS to disable lingering the next time the systemd units are
restarted.
2025-11-09 19:54:39 +00:00
Vladimír Čunát
411b8c90d5 Merge branch 'master' into staging-next 2025-11-09 17:12:15 +01:00
Martin Weinelt
5d858facb2 nixos/nix-channel: default to channels.nixos.org
Infra is interested in deprecating the redirect over the domain apex
eventually, since it is just a redirect to channels.nixos.org, which
we can more reliably redistribute with a CDN.

The nixos.org domain currently offers no IPv6 due to issues we've had
with our DNS hoster. (cf. nixos/infra#873)
2025-11-09 14:46:21 +01:00
Adam Dinwoodie
2130c0a63e linger-users: log when deconfiguring linger
If systemd has recorded that a user should be lingering despite them not
having an account on the system, that record is removed.  When that
happens, log for the sake of future debugging and investigations.

Suggested-By: Grimmauld <grimmauld@grimmauld.de>
2025-11-08 18:20:30 +00:00
Adam Dinwoodie
e3cb0fe2ca linger-users: use systemd directory options
Using systemd properties avoids the need for manually running mkdir and
cd commands, and helps systemd clean up properly when appropriate.

Suggested-By: Grimmauld <grimmauld@grimmauld.de>
2025-11-08 18:20:30 +00:00
Adam Dinwoodie
ac476b9cbc users-groups: use loginctl from configured systemctl
If a user has configured a different systemd package,
linger-users.service should respect that and use the provided loginctl
executable rather than the one from the default nixpkgs package.
2025-11-08 18:16:04 +00:00
Adam Dinwoodie
3734842aa1 linger-users: fix shellcheck warnings
Running with systemd.enableStrictShellChecks with lingering users causes
failures due to parsing the output from `ls`.  Rewrite the script to
avoid parsing ls, and instead rely on loginctl enable-linger and
disable-linger commands being idempotent and run them unconditionally.

This also fixes a bug where the systemd unit for adding and removing
lingering user configuration is only enabled if there are users
configured with lingering in the NixOS configuration.  This means that
if a NixOS system is built with some lingering users, then the linger
configuration is removed from all those users, the script to disable
lingering won't be run, and those users will incorrectly continue to
have lingering enabled.

Fixes #418101.
2025-11-08 18:16:04 +00:00
Vladimír Čunát
c08504b1c9 GNOME: 48 → 49 (#440720) 2025-11-03 16:46:36 +00:00
Jan Tojnar
7a24e8bdb6 vte: 0.80.3 → 0.81.90
https://gitlab.gnome.org/GNOME/vte/-/compare/0.80.3...0.81.90

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
Co-authored-by: Bobby Rong <rjl931189261@126.com>
2025-11-03 10:50:04 +01:00
Michael Daniels
41a3c23cdc treewide: drop figsoda as maintainer (part 4)
These were done manually by me, either due to not matching the regexes in the previous ones, or because of nixf-diagnose, which I have as a pre-commit hook.
2025-11-02 20:16:11 -05:00
Philip Taron
01898764b6 treewide: replace "yes" else "no" usages to lib.boolToYesNo (#442387) 2025-10-28 16:25:46 +00:00
Johannes Kirschbauer
4ad85b485d various: lib usage improvements - prefer removeAttrs over filterAttrs (#455787) 2025-10-27 16:17:52 +00:00
h7x4
574cb2c541 nixos/i18n: lib.any -> lib.elem 2025-10-26 16:23:35 +09:00
h7x4
36baa254b4 nixos/i18n: lib.any -> lib.elem 2025-10-26 15:31:36 +09:00
h7x4
a01ac0648c nixos/i18n: lib.filterAttrs -> lib.removeAttrs 2025-10-26 15:21:21 +09:00
Aliaksandr
80f12557f5 treewide: replace "yes" else "no" usages to lib.boolToYesNo 2025-10-21 16:04:34 +03:00
Aliaksandr
f28be96fda treewide: mkAliasOptionModuleMD -> mkAliasOptionModule 2025-10-21 15:42:47 +03:00
nixpkgs-ci[bot]
98a73a9815 Merge master into staging-next 2025-10-20 06:06:41 +00:00
h7x4
8414b2a6e0 nixos/users-groups: use submodule config in hashedPasswordFile.default (#432944) 2025-10-20 04:53:13 +00:00
nixpkgs-ci[bot]
94e79f47bf Merge master into staging-next 2025-10-18 00:15:17 +00:00
Sandro Jäckel
1f60b27cd1 userborn: do not use mkForce to disable activationScripts 2025-10-16 23:24:26 +02:00
nixpkgs-ci[bot]
ce0844a584 Merge master into staging-next 2025-10-15 12:55:06 +00:00
misuzu
67bcc4fd76 nixos/fontconfig: fix allowBitmaps option (#450484) 2025-10-13 23:21:47 +03:00
nixpkgs-ci[bot]
9cbb132d0a Merge master into staging-next 2025-10-12 12:40:00 +00:00
Maor Haimovitz
b68fa55000 nixos/fontconfig: fix allowBitmaps option 2025-10-09 19:02:11 -04:00
nikstur
70852ab2da nixos/shells-environment: add environment.shell.enable option 2025-10-09 23:52:38 +02:00
Wolfgang Walther
5e1f5b623b Merge branch 'staging-next' into staging 2025-10-05 11:40:56 +02:00
K900
e93c560b79 Merge remote-tracking branch 'origin/master' into staging-next 2025-10-05 12:17:08 +03:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther
c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Will Fancher
f75a8b7e9a nixos/users-groups: New clock system group 2025-10-03 01:35:22 -04:00
nixpkgs-ci[bot]
3c90917fd5 Merge master into staging-next 2025-09-29 12:07:15 +00:00
qbisi
b9fd04eb4d nixos/swap: use btrfs mkswapfile if possible 2025-09-29 19:03:56 +08:00
nixpkgs-ci[bot]
b1475aee15 Merge master into staging-next 2025-09-25 06:06:37 +00:00
Nick Cao
c2ecb970df nixos/zram: zramSwap.memoryPercent fix description 2025-09-22 18:06:20 -04:00
nixpkgs-ci[bot]
d158bb26b3 Merge master into staging-next 2025-09-21 18:05:23 +00:00
Emily
85b124cedd Reapply "various: fix Scudo allocator due to LLVM update"
This reverts commit 5119cafc59.
2025-09-20 16:24:40 +01:00
K900
5119cafc59 Revert "various: fix Scudo allocator due to LLVM update" 2025-09-20 17:53:06 +03:00
Lisa Gnedt
64418cb26a nixos/malloc: fix Scudo library path
The commit 01e8f570c6 unpinned the
LLVM version, which led to building errors similar to this when
Scudo is used:

building the system configuration...
error: builder for '/nix/store/1f9z73haq6avvv19glifalfnmpw3gsbx-malloc-provider-scudo.drv' failed with exit code 1;
       last 1 log lines:
       > cp: cannot stat '/nix/store/s43991isxhvknqmk53q7pqmkdrfvj1p4-compiler-rt-libc-19.1.7/lib/linux/libclang_rt.scudo-x86_64.so': No such file or directory
       For full logs, run:
         nix log /nix/store/1f9z73haq6avvv19glifalfnmpw3gsbx-malloc-provider-scudo.drv

It seems in the new LLVM version the Scudo library was moved:

$ ls /nix/store/*-compiler-rt-libc-20.1.8/lib/linux/libclang_rt.scudo*
/nix/store/z98mwyi0w8f4kgk3rw6av946azh28hc9-compiler-rt-libc-20.1.8/lib/linux/libclang_rt.scudo_standalone_cxx-x86_64.a
/nix/store/z98mwyi0w8f4kgk3rw6av946azh28hc9-compiler-rt-libc-20.1.8/lib/linux/libclang_rt.scudo_standalone-x86_64.a
/nix/store/z98mwyi0w8f4kgk3rw6av946azh28hc9-compiler-rt-libc-20.1.8/lib/linux/libclang_rt.scudo_standalone-x86_64.so

This commit adjusts the library path.

Co-authored-by: CUB3D <callumthom11@gmail.com>
2025-09-20 12:56:37 +02:00
NAHO
af3321b3c2 nixos/zram: prevent implicitly disabling negative-sized ZRAM
Prevent implicitly disabling a negative-sized ZRAM because disabling the
ZRAM should probably always be done by disabling the zrawmSwap.enable
option.

Fixes: cd1b48bc35 ("nixos: Add zram swap module")
2025-09-19 21:32:28 +02:00
nixpkgs-ci[bot]
e17f375991 Merge master into staging-next 2025-09-09 00:16:24 +00:00
cinereal
c30b9ec953 formats: add nixConf
adds `nixConf` (to generate `nix.conf` files) as a file format to
`lib.formats`, and uses it for serializing `nix.settings`.

this makes it easier to 'manually' serialize `nix.settings`, which is
relevant in e.g. safely handling sensitive values such as that of
`nix.settings.access-tokens`.

Signed-off-by: cinereal <cinereal@riseup.net>
2025-09-06 13:25:52 +02:00
Vladimír Čunát
7f3ba72e24 Merge branch 'master' into staging 2025-08-23 11:39:22 +02:00
K900
31d5c4e753 nixos/treewide: clean up some more references to deleted qt5 things 2025-08-22 11:38:49 +03:00
Florian Klink
3321fa3e4c kbd: link compression libs directly (#434001) 2025-08-19 22:03:39 +02:00
nikstur
8d51c6277e kbd: 2.8.0 -> 2.8.0-unstable-2025-08-12
Link compression libs directly.

- Clean up derivation
- Remove NIX_LDFLAGS which achieved nothing. Static compilation works
  without it on master. It's unclear what this should've every achieved.
  kbd doesn't link against audit.
- Build directly from source now instead of the preconfigured tarball
  (avoids xz-style issues)
2025-08-18 23:46:44 +02:00
Emily
01e8f570c6 nixos/malloc: unpin LLVM for Scudo
This was using `llvmPackages_latest` before that became an alias.
2025-08-18 15:56:40 +01:00