added stuff

This commit is contained in:
vali 2024-04-09 23:11:33 +02:00
commit 7d4f626b7d
907 changed files with 70990 additions and 0 deletions

12
nyx/lib/hardware.nix Normal file
View 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;
}