nixos/modules/desktop/dwm/default.nix

94 lines
1.9 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 = {
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-08-07 20:22:59 +04:00
greeters.mini = {
2023-07-20 02:19:11 +04:00
enable = true;
2023-08-07 20:22:59 +04:00
user = "sako";
extraConfig = ''
[greeter]
2023-08-07 20:28:38 +04:00
show-password-label = true
2023-08-07 20:29:51 +04:00
password-label-text = magic word
invalid-password-text = skull issue
2023-08-07 20:28:38 +04:00
2023-08-07 20:22:59 +04:00
'';
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;
};
".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";
};
};
};
}