nixcfg/homeManagerModules/desktop/sway/autoRotate.nix

14 lines
261 B
Nix

{
pkgs,
lib,
config,
...
}: {
config = lib.mkIf config.alyraffauf.desktop.sway.tabletMode.autoRotate {
home.packages = with pkgs; [rot8];
wayland.windowManager.sway.config.startup = [
{command = "${lib.getExe pkgs.rot8}";}
];
};
}