lib.hardware:
lib.hardware.isx86Linux
check if the host platform is linux and x86
Arguments
- [pkgs] the package set
Type
isx86Linux :: AttrSet -> Bool
Example
isx86Linux pkgs
=> true
lib.hardware.primaryMonitor
assume the first monitor in the list of monitors is primary get its name from the list of monitors
Arguments
- [config] the configuration that nixosConfigurations provides
Type
primaryMonitor :: AttrSet -> String
Example
primaryMonitor osConfig
=> "DP-1"
lib.hardware.ldTernary
ldTernary, short for linux darwin ternary
Inputs
- [pkgs] is the package set
- [l] the value to return if the host platform is linux
- [d] the value to return if the host platform is darwin
Type
ldTernary :: AttrSet -> Any -> Any -> Any
Example
ldTernary pkgs "linux" "darwin"
=> "linux"