nix -> Nix (#106)

* nix -> Nix

* Update create_user.rs

* Update create_users_and_groups.rs
This commit is contained in:
Graham Christensen 2022-12-09 18:42:27 +00:00 committed by GitHub
parent c2a4f3cbc9
commit cda9fcfc03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -42,7 +42,7 @@ impl Action for CreateUser {
vec![ActionDescription::new( vec![ActionDescription::new(
self.tracing_synopsis(), self.tracing_synopsis(),
vec![format!( vec![format!(
"The nix daemon requires system users it can act as in order to build" "The Nix daemon requires system users it can act as in order to build"
)], )],
)] )]
} }
@ -226,7 +226,7 @@ impl Action for CreateUser {
self.name, self.uid, self.groupname, self.gid self.name, self.uid, self.groupname, self.gid
), ),
vec![format!( vec![format!(
"The nix daemon requires system users it can act as in order to build" "The Nix daemon requires system users it can act as in order to build"
)], )],
)] )]
} }

View file

@ -81,7 +81,7 @@ impl Action for CreateUsersAndGroups {
} }
let mut explanation = vec![ let mut explanation = vec![
format!("The nix daemon requires system users (and a group they share) which it can act as in order to build"), format!("The Nix daemon requires system users (and a group they share) which it can act as in order to build"),
]; ];
if let Some(val) = create_group.describe_execute().iter().next() { if let Some(val) = create_group.describe_execute().iter().next() {
explanation.push(val.description.clone()) explanation.push(val.description.clone())
@ -175,7 +175,7 @@ impl Action for CreateUsersAndGroups {
} }
let mut explanation = vec![ let mut explanation = vec![
format!("The nix daemon requires system users (and a group they share) which it can act as in order to build"), format!("The Nix daemon requires system users (and a group they share) which it can act as in order to build"),
]; ];
if let Some(val) = create_group.describe_revert().iter().next() { if let Some(val) = create_group.describe_revert().iter().next() {
explanation.push(val.description.clone()) explanation.push(val.description.clone())

View file

@ -47,7 +47,7 @@ impl PlaceNixConfiguration {
#[typetag::serde(name = "place_nix_configuration")] #[typetag::serde(name = "place_nix_configuration")]
impl Action for PlaceNixConfiguration { impl Action for PlaceNixConfiguration {
fn tracing_synopsis(&self) -> String { fn tracing_synopsis(&self) -> String {
format!("Place the nix configuration in `{NIX_CONF}`") format!("Place the Nix configuration in `{NIX_CONF}`")
} }
fn execute_description(&self) -> Vec<ActionDescription> { fn execute_description(&self) -> Vec<ActionDescription> {
@ -75,7 +75,7 @@ impl Action for PlaceNixConfiguration {
fn revert_description(&self) -> Vec<ActionDescription> { fn revert_description(&self) -> Vec<ActionDescription> {
vec![ActionDescription::new( vec![ActionDescription::new(
format!("Remove the nix configuration in `{NIX_CONF}`"), format!("Remove the Nix configuration in `{NIX_CONF}`"),
vec![ vec![
"This file is read by the Nix daemon to set its configuration options at runtime." "This file is read by the Nix daemon to set its configuration options at runtime."
.to_string(), .to_string(),