Qtile: Difference between revisions

imported>Wisehh
Source addition
imported>Vieta
wayland support
Line 9: Line 9:
{ config, pkgs, ... }:  
{ config, pkgs, ... }:  
   ...
   ...
  imports =
    [ # Include the results of the hardware scan.
      ./hardware-configuration.nix
      # For wayland support see the following config
      ./qtile.nix
    ];
   services.xserver.windowManager.qtile.enable = true;
   services.xserver.windowManager.qtile.enable = true;
   ...
   ...
}
}
</nowiki>
}}


{{file|/etc/nixos/qtile.nix|nix|
<nowiki>
{ config, pkgs, lib, ... }:
{
  nixpkgs.overlays = [
  (self: super: {
    qtile-unwrapped = super.qtile-unwrapped.overrideAttrs(_: rec {
      postInstall = let
        qtileSession = ''
        [Desktop Entry]
        Name=Qtile Wayland
        Comment=Qtile on Wayland
        Exec=qtile start -b wayland
        Type=Application
        '';
        in
        ''
      mkdir -p $out/share/wayland-sessions
      echo "${qtileSession}" > $out/share/wayland-sessions/qtile.desktop
      '';
      passthru.providedSessions = [ "qtile" ];
    });
  })
];
services.xserver.displayManager.sessionPackages = [ pkgs.qtile-unwrapped ];
}
</nowiki>
</nowiki>
}}
}}