nixos/modules/desktop/qtile/default.nix

98 lines
1.9 KiB
Nix
Raw Normal View History

2023-08-03 02:47:05 +04:00
{
2023-08-12 22:51:57 +04:00
outputs,
options,
config,
lib,
pkgs,
...
}:
2024-08-01 16:24:09 +04:00
let
2023-08-12 22:51:57 +04:00
cfg = config.modules.desktop.qtile;
in {
2023-08-03 02:47:05 +04:00
options.modules.desktop.qtile = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-08-03 02:47:05 +04:00
};
#TODO Do this
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-08-03 02:47:05 +04:00
services.xserver = {
enable = true;
windowManager.qtile = {
enable = true;
};
displayManager = {
2023-08-12 22:51:57 +04:00
defaultSession = "none+qtile";
lightdm = {
2023-08-03 02:47:05 +04:00
enable = true;
2023-08-12 22:51:57 +04:00
background = ../../../config/background.png;
greeters.gtk = {
enable = true;
theme = {
name = "vimix-dark-ruby";
package = pkgs.vimix-gtk-themes;
};
2023-08-03 02:47:05 +04:00
};
};
};
libinput = {
enable = true;
# no mouse accel
mouse = {
accelProfile = "flat";
};
# no touchpad accel
touchpad = {
accelProfile = "flat";
};
};
2023-08-12 22:51:57 +04:00
};
2023-08-03 02:47:05 +04:00
users.users.sako.packages = with pkgs; [
rofi
# network
networkmanagerapplet
# brightness
brightnessctl
# gee tee k
vimix-gtk-themes
vimix-icon-theme
lxappearance
catppuccin-cursors.mochaDark
# screen shot (s)
flameshot
];
2023-08-12 22:51:57 +04:00
home-manager.users.sako = {pkgs, ...}: {
2023-08-03 02:47:05 +04:00
home.pointerCursor = {
2023-08-12 22:51:57 +04:00
name = "Catppuccin-Mocha-Dark";
2023-08-03 02:47:05 +04:00
size = 16;
x11 = {
enable = true;
};
gtk.enable = true;
package = pkgs.catppuccin-cursors.mochaDark;
};
gtk = {
enable = true;
2023-08-03 02:47:05 +04:00
theme.name = "vimix-dark-ruby";
iconTheme.name = "Vimix Ruby Dark";
};
home.file = {
"background.png" = {
enable = true;
source = ../../../config/background.png;
};
};
2023-08-12 22:51:57 +04:00
#xdg.configFile = {
# qtile = {
# enable = true;
# source = ../../../config/qtile;
# recursive = true;
# };
#};
2023-08-03 02:47:05 +04:00
};
};
}