nixos/modules/desktop/dwm/default.nix

87 lines
1.8 KiB
Nix
Raw Normal View History

2023-07-20 02:19:11 +04:00
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.dwm;
in {
2023-07-20 02:19:11 +04:00
options.modules.desktop.dwm = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
windowManager = {
2023-07-20 17:34:38 +04:00
dwm.enable = true;
2023-07-20 02:19:11 +04:00
};
displayManager = {
lightdm = {
enable = true;
2023-07-21 21:49:14 +04:00
background = ../../../config/background.png;
2023-07-20 02:19:11 +04:00
greeters.gtk = {
enable = true;
theme = {
name = "vimix-dark-ruby";
2023-07-20 17:32:50 +04:00
package = pkgs.vimix-gtk-themes;
2023-07-20 02:19:11 +04:00
};
};
};
};
libinput = {
mouse = {
accelProfile = "flat";
};
2023-07-20 02:19:11 +04:00
touchpad = {
accelProfile = "flat";
};
2023-07-20 02:19:11 +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
];
home-manager.users.sako = {pkgs, ...}: {
2023-07-21 15:44:42 +04:00
home.file = {
"background.png" = {
enable = true;
source = ../../../config/background.png;
};
".dwmscripts" = {
enable = true;
source = ../../../config/dwm/scripts;
recursive = true;
};
2023-07-21 15:44:42 +04:00
};
2023-07-20 02:19:11 +04:00
home.pointerCursor = {
name = "Catppuccin-Mocha-Dark";
2023-07-20 02:19:11 +04:00
size = 16;
x11 = {
enable = true;
};
gtk.enable = true;
package = pkgs.catppuccin-cursors.mochaDark;
};
gtk = {
theme.name = "vimix-dark-ruby";
iconTheme.name = "Vimix Ruby Dark";
};
};
};
}