added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
12
nyx/lib/hardware.nix
Normal file
12
nyx/lib/hardware.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
_: let
|
||||
# check if the host platform is linux and x86
|
||||
# (isx86Linux pkgs) -> true
|
||||
isx86Linux = pkgs: with pkgs.stdenv; hostPlatform.isLinux && hostPlatform.isx86;
|
||||
|
||||
# assume the first monitor in the list of monitors is primary
|
||||
# get its name from the list of monitors
|
||||
# `primaryMonitor osConfig` -> "DP-1"
|
||||
primaryMonitor = config: builtins.elemAt config.modules.device.monitors 0;
|
||||
in {
|
||||
inherit isx86Linux primaryMonitor;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue