Class: OsCtld::DistConfig::Distributions::NixOS

Inherits:
Base
  • Object
show all
Defined in:
lib/osctld/dist_config/distributions/nixos.rb

Defined Under Namespace

Classes: Configurator

Instance Attribute Summary

Attributes inherited from Base

#configurator, #ct, #ctrc, #distribution, #version

Instance Method Summary collapse

Methods inherited from Base

#add_netif, #apply_hostname, #configurator_class, distribution, #dns_resolvers, #initialize, #log_type, #network, #passwd, #post_mount, #pre_start, #remove_netif, #rename_netif, #set_hostname, #start, #stop, #unset_etc_hosts, #update_etc_hosts, #volatile_is_systemd?, #with_rootfs

Methods included from Utils::SwitchUser

#ct_attach, #ct_syscmd

Constructor Details

This class inherits a constructor from OsCtld::DistConfig::Distributions::Base

Instance Method Details

#bin_path(_opts) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/osctld/dist_config/distributions/nixos.rb', line 36

def bin_path(_opts)
  with_rootfs do
    File.realpath('/nix/var/nix/profiles/system/sw/bin')
  rescue Errno::ENOENT
    '/bin'
  end
end