From 2525a253d5746f0a17199034cb3dc01b5a5b839c Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Mon, 23 Sep 2024 07:45:25 -0400 Subject: [PATCH] Try this conditional --- modules/users/crow/home.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/users/crow/home.nix b/modules/users/crow/home.nix index 3aa1f1d..38b41ad 100644 --- a/modules/users/crow/home.nix +++ b/modules/users/crow/home.nix @@ -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 = {