Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

maybe this will fix autoreboot confirmation

+9 -1
+9 -1
cli/src/main.rs
··· 187 187 .expect("failed to activate"); 188 188 189 189 if config.autoreboot.unwrap_or(false) || reboot.clone() { 190 - tree.reboot(yes.clone()); 190 + let confirm = if *reboot { 191 + yes.clone() 192 + } else if config.autoreboot.unwrap_or(false) { 193 + true 194 + } else { 195 + false 196 + }; 197 + 198 + tree.reboot(confirm); 191 199 } 192 200 } 193 201 TreeCommands::Reboot { yes } => tree.reboot(yes.clone()),