mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-31 18:44:20 -05:00
Try this conditional
This commit is contained in:
parent
e2cb4c4746
commit
2525a253d5
1 changed files with 8 additions and 3 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue