Since 26.05, "switch" updates have become more violent, abruptly logging
out graphical sessions. :(
- hydrate ${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch
+ hydrate ${config.system.build.nixos-rebuild}/bin/nixos-rebuild ${cfg.operation}
sync
while read user;do
remove_arg=-r
sync
while read user;do
remove_arg=-r
+ operation = lib.mkOption {
+ type = lib.types.enum [
+ "switch"
+ "boot"
+ ];
+ default = "switch";
+ example = "boot";
+ description = ''
+ Whether to run
+ `nixos-rebuild switch --upgrade` or run
+ `nixos-rebuild boot --upgrade`
+ '';
+ };
+
signingKeys = mkOption {
type = types.listOf types.path;
description = ''
signingKeys = mkOption {
type = types.listOf types.path;
description = ''