{ lib, pkgs, ... }@attrs: let hostname = "${attrs.hostname}"; gpu = [ "home.nix" ]; ## mettre le module picom hors de X11 et l'installer seulement sur les ordinateurs gpu # l'importer dans X11 seulement si gpu isGpu = lib.any (name: hostname == name) gpu; in { imports = [ ./common ./dunst ./kitty ./rofi ./sound ./gaming ] ++ lib.optionals (builtins.elem hostname [ "home-nix" ]) [ (import ./X11 { inherit lib pkgs isGpu; }) ./printers ./gaming ./nvidia ./virt-manager ] ++ lib.optionals (builtins.elem hostname [ "test-nix" ]) [ ./X11 ] ++ lib.optionals (builtins.elem hostname [ "home-nix" "test-nix" ]) [ ./wayland ]; }