Try this conditional

This commit is contained in:
TheWanderingCrow 2024-09-23 07:45:25 -04:00
parent e2cb4c4746
commit 2525a253d5

View file

@ -1,11 +1,16 @@
{config, inputs, pkgs, lib, ...}: {
{config, inputs, pkgs, lib, ...}:
let
monitorConfig = if config.networking.hostName == "Parzival" then ./hypr/parzival-monitors.conf
else if config.networking.hostName == "Parzival-Mobile" then ./hypr/parzival_mobile-monitors.conf
else null;
in
{
home = {
username = "crow";
homeDirectory = "/home/crow";
stateVersion = "24.05";
file.".config/hypr/hyprland.conf".source = ./hypr/hyprland.conf;
file.".config/hypr/monitors.conf".source = lib.mkIf config.networking.hostName == "Parzival" ./hypr/parzival-monitors.conf;
file.".config/hypr/monitors.conf".source = lib.mkIf config.networking.hostName == "Parzival-Mobile" ./hypr/parzival_mobile-monitors.conf;
file.".config/hypr/monitors.conf".source = lib.mkIf (monitorConfig != null) monitorConfig;
};
xdg = {