Commit Graph

3313 Commits

Author SHA1 Message Date
Will Fancher
7832429142 nixos/systemd: CPUAccounting is deprecated (#454999) 2025-10-31 07:16:53 +00:00
Johannes Kirschbauer
4ad85b485d various: lib usage improvements - prefer removeAttrs over filterAttrs (#455787) 2025-10-27 16:17:52 +00:00
h7x4
6992ef3a7f nixos/kernel_config: lib.any -> lib.elem 2025-10-26 16:23:36 +09:00
h7x4
77bd061030 nixos/systemd: lib.filterAttrs -> lib.removeAttrs 2025-10-26 15:21:23 +09:00
Masum Reza
5992eb776d nixos/stage-1: always include util-linux mount (#414391) 2025-10-25 10:56:23 +00:00
benaryorg
27323e52cc nixos/systemd: CPUAccounting is deprecated
systemd 258 has the following changes noted in systemd.resource-control(5):

> `CPUAccounting=` setting is deprecated, because it is always available on the unified cgroup hierarchy and such setting has no effect.

This commit removes it from the three services using it directly, as well as one instance of example text.

Signed-off-by: benaryorg <binary@benary.org>
2025-10-23 18:54:30 +00:00
h7x4
ddc42ca86f nixos/plymouth: refresh (#454358) 2025-10-23 06:11:17 +00:00
Acid Bong
6e1fb5d6b2 nixos/plymouth: make use of lib.getExe' wherever possible 2025-10-22 20:50:52 +03:00
Acid Bong
e6aa2e34a1 nixos/plymouth: add package option 2025-10-22 20:33:10 +03:00
Johannes Kirschbauer
43b77e1457 lib/cli: add toCommandLine (#404233) 2025-10-22 14:45:00 +00:00
Masum Reza
ba6e9f00fb limine: convert boolean values (#453583) 2025-10-22 14:23:20 +00:00
Acid Bong
115adc466a nixos/plymouth: replace with lib; with inherit 2025-10-22 12:57:14 +03:00
Lukas Wurzinger
1f4c50ab81 lib/cli: deprecate toGNUCommandLine 2025-10-21 21:01:38 +02:00
K900
a905b1d8e1 nixos/systemd-initrd: fix eval under allowAliases = false 2025-10-20 11:19:41 +03:00
Sizhe Zhao
b8af8f2e3d limine: convert boolean values 2025-10-20 02:36:44 +08:00
matthewcroughan
253a0165f0 nixos/systemd-initrd: only include glibc nss modules on glibc systems 2025-10-18 14:20:15 +01:00
nixpkgs-ci[bot]
ce0844a584 Merge master into staging-next 2025-10-15 12:55:06 +00:00
nikstur
653fd8c995 nixos/systemd/shutdown: make shutdown ramfs bashless 2025-10-14 10:14:43 +02:00
nikstur
b9d0fd8be4 nixos/systemd/shutdown: stricter sandboxing
Copied the config from archlinux's mkinitcpio:
318ae30f6a/systemd/mkinitcpio-generate-shutdown-ramfs.service
2025-10-14 10:14:43 +02:00
nixpkgs-ci[bot]
bff70f3185 Merge master into staging-next 2025-10-13 12:07:07 +00:00
Arian van Putten
d1493eb6df pkgs-lib/formats/systemd: make format a function (#448460) 2025-10-13 11:16:24 +00:00
h7x4
fa6b7ec3d4 pkgs-lib/formats/systemd: make format a function 2025-10-13 20:11:40 +09:00
nixpkgs-ci[bot]
543be3b14a Merge master into staging-next 2025-10-12 18:05:14 +00:00
Luj
b72938b595 nixos/systemd-boot: use /dev/null for empty file instead of mktemp (#450857) 2025-10-12 19:38:29 +02:00
Emily
7f9a83be1f nixos/nixos-init: add more strict assertions for required config (#450775) 2025-10-12 15:15:13 +00:00
nikstur
8f5d10fd7e nixos/nixos-init: add more strict assertions for required config 2025-10-12 16:55:23 +02:00
nixpkgs-ci[bot]
9cbb132d0a Merge master into staging-next 2025-10-12 12:40:00 +00:00
Lee Bousfield
a5082278a9 nixos/systemd-boot: use /dev/null for empty file
Previously, mktemp was used, but it's not necessary and wasn't deleted.
2025-10-10 19:45:21 -05:00
nikstur
7226218c6c nixos/profiles/bashless: init (#435428) 2025-10-10 22:20:06 +02:00
nixpkgs-ci[bot]
fa9347194d Merge master into staging-next 2025-10-10 12:07:02 +00:00
nikstur
8002da18ab nixos/systemd-initrd: add boot.initrd.systemd.shell.enable option 2025-10-09 23:52:38 +02:00
nikstur
26cf6ffe54 nixos/top-level: only include preSwitchChecks when they are set 2025-10-09 23:52:38 +02:00
nikstur
ccf0b1426f nixos/timesyncd: remove migration path dating back to 19.09
Also remove the test that only tested this migration and nothing else
about systemd-timesyncd.
2025-10-08 16:05:41 +02:00
nikstur
7ccd3bd8f4 nixos/timesyncd: remove unnecessary workaround
This workardoung is now unnecessary because systemd and
systemd-timesyncd will never actually revert to a time lower than the
current system time. It will only *advance* the system time to the EPOCH
if the system time is lower.

This also makes systemd-timesyncd bashless as we remove the preStart
script for any NixOS version newer than 19.09.
2025-10-08 15:53:17 +02:00
K900
fb73ccd10d Merge remote-tracking branch 'origin/staging-next' into staging 2025-10-07 08:19:36 +03:00
Sizhe Zhao
3fbc40c0ac nixos/limine: forceMbr -> force 2025-10-06 21:48:31 +08: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
6160af2a36 nixos/systemd-oomd: Drop swap ordering
This ordering is present in the upstream unit in 258
2025-10-03 01:35:52 -04:00
Ali Rizvi
107893c8f3 nixos/systemd-oomd: drop old After= dependency 2025-10-03 01:35:22 -04:00
Will Fancher
5da25f9301 systemd: Patch journald's Audit setting
https://github.com/systemd/systemd/pull/39069
2025-10-02 19:53:08 -04:00
nixpkgs-ci[bot]
02bde57e9a Merge master into staging-next 2025-09-24 18:05:53 +00:00
Luj
85f5bb8e46 nixos/systemd-boot: atomically update copied destination files (#444960) 2025-09-24 16:12:02 +02:00
sternenseemann
85c7452e80 nixos/systemd-boot: fsync() copied files
Since mkstemp() gives us a file descriptor, we may as well call fsync().
2025-09-24 01:35:51 +02:00
sternenseemann
94c190a55c nixos/systemd-boot: atomically update copied destination files
We absolutely do not want to leave an incomplete file behind in /boot
since an incomplete initrd would render the machine unbootable. Errors
while writing are relatively common, mostly due to full /boot
partitions.

systemd-boot-builder does never attempt to re-write already existing
files which means that such situations are not fixable by re-running
nixos-rebuild etc. Instead the user needs to know about internals of the
systemd-boot and manually delete the correct file to recover from a
partially written kernel or (more commonly) initrd in /boot.

Note that this used to be a non issue since systemd-boot-builder used to
always delete all kernels and initrds before copying kernels and
initrds, so dest.exist() would always return False. This was fixed in
f2ca990558, revealing the underlying bad
assumption (that copyfile() always succeeds or fails without writing
anything).

The solution is to write to a temporary file first and move it to the
destination path only after this has succeeded. This way, if an error
occurs during copying, only a file distinct from dest is left behind
which would be cleaned up by subsequent runs of remove_old_entries().

Resolves #444066.
2025-09-24 01:00:44 +02:00
K900
83dfcbb306 Merge remote-tracking branch 'origin/master' into staging-next 2025-09-23 21:15:13 +03:00
misuzu
e7fa9ff16c nixos-init: init at 0.1.0 (#433154) 2025-09-23 12:48:56 +00:00
nikstur
3c24952c6d chroot-realpath: drop in favour of nixos-init 2025-09-23 00:21:34 +02:00