Struct nix_data::config::configfile::NixDataConfig
source · [−]pub struct NixDataConfig {
pub systemconfig: Option<String>,
pub flake: Option<String>,
pub flakearg: Option<String>,
pub userpkgtype: Option<UserPkgType>,
}Expand description
Struct containing locations of system configuration files and some user configuration.
Fields
systemconfig: Option<String>Path to the NixOS configuration file. Typically /etc/nixos/configuration.nix.
flake: Option<String>Path to the NixOS flake file. Typically /etc/nixos/flake.nix.
flakearg: Option<String>Specifies which configuration should be user from the nixosConfigurations attribute set in the flake file.
If not set, NixOS defaults to the hostname of the system.
userpkgtype: Option<UserPkgType>Type of package manager used by the user.
Trait Implementations
sourceimpl Clone for NixDataConfig
impl Clone for NixDataConfig
sourcefn clone(&self) -> NixDataConfig
fn clone(&self) -> NixDataConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for NixDataConfig
impl Debug for NixDataConfig
sourceimpl<'de> Deserialize<'de> for NixDataConfig
impl<'de> Deserialize<'de> for NixDataConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<NixDataConfig> for NixDataConfig
impl PartialEq<NixDataConfig> for NixDataConfig
sourcefn eq(&self, other: &NixDataConfig) -> bool
fn eq(&self, other: &NixDataConfig) -> bool
sourceimpl Serialize for NixDataConfig
impl Serialize for NixDataConfig
impl Eq for NixDataConfig
impl StructuralEq for NixDataConfig
impl StructuralPartialEq for NixDataConfig
Auto Trait Implementations
impl RefUnwindSafe for NixDataConfig
impl Send for NixDataConfig
impl Sync for NixDataConfig
impl Unpin for NixDataConfig
impl UnwindSafe for NixDataConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.