linuxmemes @lemmy.world π½π©π ππ₯ [ππ/πππ] @anarchist.nexus 1w ago sudo nixos-rebuild switch cross-posted from: https://anarchist.nexus/post/93090 1 crossposts 196 @lemmy.blahaj.zone π½π©π ππ₯ [ππ/πππ] @anarchist.nexus 1w ago rule
Info:nixos-rebuild switch = build the new system configuration (from /etc/nixos/configuration.nix or flakes) and activate it immediately without reboot.It builds the new system in /nix/store.Updates the GRUB/systemd-boot entries.Switches to the new configuration right away (systemd units, services, kernel params if possible, etc.).Leaves the old generations available for rollback (nixos-rebuild switch --rollback).So: "switch" means build + activate now
I never use nixos, but I just got intrusive thought to make that command get invoked automatically every time the config file is modified.
Is this some declarative joke I am too imperative to understand?
Info:
nixos-rebuild switch
= build the new system configuration (from/etc/nixos/configuration.nix
or flakes) and activate it immediately without reboot./nix/store
.nixos-rebuild switch --rollback
).So: "switch" means build + activate now
I never use nixos, but I just got intrusive thought to make that command get invoked automatically every time the config file is modified.