nixos/modules/desktop/dwm/default.nix

109 lines
2.4 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 {
2023-09-09 14:46:43 +04:00
# this needs to be enabled for gtk apps
programs.dconf.enable = true;
# enable dwm
2023-07-20 02:19:11 +04:00
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 = {
2023-08-07 20:22:59 +04:00
defaultSession = "none+dwm";
2023-07-20 02:19:11 +04:00
lightdm = {
enable = true;
2023-07-21 21:49:14 +04:00
background = ../../../config/background.png;
2023-09-10 00:20:19 +04:00
greeters.gtk = {
2023-07-20 02:19:11 +04:00
enable = true;
2023-09-10 00:20:19 +04:00
theme = {
name = "vimix-dark-ruby";
package = pkgs.vimix-gtk-themes;
};
2023-09-10 21:12:33 +04:00
cursorTheme = {
name = "Catppuccin-Mocha-Dark";
size = 16;
package = pkgs.catppuccin-cursors.mochaDark;
};
2023-07-20 02:19:11 +04:00
};
2023-09-10 00:20:19 +04:00
# greeters.mini = {
# enable = true;
# user = "sako";
# extraConfig = ''
# [greeter]
# show-password-label = true
# password-label-text = magic word
# invalid-password-text = skull issue
# '';
# };
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
2023-08-09 19:42:18 +04:00
# clipboard
xclip
2023-07-20 02:19:11 +04:00
];
home-manager.users.sako = {pkgs, ...}: {
2023-07-21 15:44:42 +04:00
home.file = {
"background.png" = {
enable = true;
source = ../../../config/background.png;
};
2023-09-11 08:11:40 +04:00
".dwmscripts" = {
enable = true;
recursive = true;
source = ../../../config/dwmbar;
};
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;
};
2023-07-20 02:19:11 +04:00
gtk.enable = true;
package = pkgs.catppuccin-cursors.mochaDark;
2023-07-20 02:19:11 +04:00
};
gtk = {
enable = true;
2023-07-20 02:19:11 +04:00
theme.name = "vimix-dark-ruby";
iconTheme.name = "Vimix Ruby Dark";
};
};
};
}