nix -> Nix (#106)
* nix -> Nix * Update create_user.rs * Update create_users_and_groups.rs
This commit is contained in:
parent
c2a4f3cbc9
commit
cda9fcfc03
|
@ -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"
|
||||||
)],
|
)],
|
||||||
)]
|
)]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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())
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue