{ config, pkgs, lib, ... }: let mod = "Mod4"; in { xsession.enable = true; xsession.windowManager.i3 = { enable = true; config = { modifier = mod; terminal = "${pkgs.alacritty}/bin/alacritty"; window = { titlebar = false; border = 2; }; keybindings = lib.mkOptionDefault { "${mod}+r" = "exec --no-startup-id ${pkgs.rofi}/bin/rofi -show drun"; "${mod}+l" = "exec ${pkgs.systemd}/bin/loginctl lock-session"; }; bars = [ ]; }; }; programs.rofi = { enable = true; theme = "purple"; terminal = "${pkgs.alacritty}/bin/alacritty"; extraConfig = { modi = "drun"; show-icons = true; combi-modi = "window,drun,ssh"; }; }; xdg.configFile."polybar/aptos.ini".source = ../../configs/polybar/aptos.ini; xdg.configFile."polybar/carmel.ini".source = ../../configs/polybar/carmel.ini; xdg.configFile."polybar/modules".source = ../../configs/polybar/modules; services.polybar = { enable = true; package = pkgs.polybarFull; script = "polybar --config=${config.xdg.configHome}/polybar/$(hostname -s).ini -r alone &"; }; }