17 lines
487 B
Nix
17 lines
487 B
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
wmType = builtins.trace "WM type: ${config.wm.type}" config.wm.type;
|
|
in
|
|
{
|
|
imports = [
|
|
./system/top.nix
|
|
(if config.wm.type == "hyprland" then
|
|
builtins.trace "Importing Hyprland config" ./window_managers/hyprland/top.nix
|
|
else if config.wm.type == "mangowc" then
|
|
builtins.trace "Importing Mangowc config" ./window_managers/mangowc/top.nix
|
|
else
|
|
assert false; "Unknown window manager type: ${config.wm.type}"
|
|
)
|
|
];
|
|
}
|