flakes/cfg/winter/gui.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

2021-05-11 14:32:58 +07:00
{ config, lib, pkgs, ... }: {
fonts = {
enableDefaultFonts = true;
fontconfig = {
defaultFonts = {
serif = ["NotoSerif"];
2021-05-11 18:36:46 +07:00
sansSerif = ["NotoSans"];
monospace = ["CascadiaCode"];
2021-05-11 14:32:58 +07:00
};
};
fonts = with pkgs; [
cascadia-code
font-awesome-ttf
font-awesome_4
hanazono
material-icons
noto-fonts
noto-fonts-cjk
noto-fonts-extra
open-sans
twemoji-color-font
unifont
];
};
services.xserver = {
enable = true;
autorun = false;
displayManager = {
lightdm.enable = lib.mkForce false;
startx.enable = true;
};
2021-05-11 18:25:54 +07:00
desktopManager.xterm.enable = false;
2021-05-11 14:32:58 +07:00
libinput.enable = true;
config = ''
Section "InputClass"
Identifier "mouse accel"
Driver "libinput"
MatchIsPointer "on"
Option "AccelProfile" "flat"
Option "AccelSpeed" "0"
EndSection
'';
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
extraPackages = with pkgs; [
2021-05-11 18:36:46 +07:00
dunst
feh
lxappearance
maim
picom
polybar
2021-05-11 14:32:58 +07:00
rofi
2021-05-11 18:36:46 +07:00
xclip
2021-05-11 14:32:58 +07:00
];
};
xkbOptions = "ctrl:swapescape";
};
}