From ed5b1c904080fe4b06d55723258acc793df5e8eb Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Tue, 23 Jul 2024 15:46:28 -0700 Subject: [PATCH] Make switch the default command for NixOS --- src/cli/cmd/apply/nixos.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/cmd/apply/nixos.rs b/src/cli/cmd/apply/nixos.rs index 69b83075..3211e831 100644 --- a/src/cli/cmd/apply/nixos.rs +++ b/src/cli/cmd/apply/nixos.rs @@ -6,10 +6,10 @@ use clap::{Parser, ValueEnum}; pub(super) struct NixOS { /// The command to run from the profile's bin/switch-to-configuration. /// Takes the form bin/switch-to-configuration . - #[arg(long, env = "FH_NIXOS_VERB", name = "CMD")] + #[arg(long, env = "FH_NIXOS_VERB", name = "CMD", default_value = "switch")] pub(super) run: Option, - /// The FlakeHub output reference to apply to the profile. + /// The FlakeHub output reference to apply to the system profile. /// References must be of this form: {org}/{flake}/{version_req}#{attr_path} pub(super) output_ref: String, }