nixos/modules/desktop/awesome/default.nix

100 lines
2 KiB
Nix
Raw Normal View History

2023-07-21 17:12:20 +04:00
{
2023-08-13 03:26:33 +04:00
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.awesome;
in {
2023-07-21 17:12:20 +04:00
options.modules.desktop.awesome = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
2023-08-02 16:49:33 +04:00
services.xserver = {
enable = true;
windowManager.awesome = {
enable = true;
luaModules = with pkgs.luaPackages; [
luarocks
luadbi-mysql
];
};
displayManager = {
2023-08-13 03:26:33 +04:00
defaultSession = "none+awesome";
lightdm = {
2023-08-02 16:49:33 +04:00
enable = true;
2023-08-13 03:26:33 +04:00
background = ../../../config/background.png;
greeters.gtk = {
enable = true;
theme = {
name = "vimix-dark-ruby";
package = pkgs.vimix-gtk-themes;
};
2023-08-02 16:49:33 +04:00
};
};
};
libinput = {
enable = true;
# no mouse accel
mouse = {
accelProfile = "flat";
};
# no touchpad accel
touchpad = {
accelProfile = "flat";
};
};
2023-08-13 03:26:33 +04:00
};
2023-08-02 16:49:33 +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-13 03:26:33 +04:00
home-manager.users.sako = {pkgs, ...}: {
2023-08-02 16:49:33 +04:00
home.pointerCursor = {
2023-08-13 03:26:33 +04:00
name = "Catppuccin-Mocha-Dark";
2023-08-02 16:49:33 +04:00
size = 16;
x11 = {
enable = true;
};
gtk.enable = true;
package = pkgs.catppuccin-cursors.mochaDark;
};
gtk = {
enable = true;
2023-08-02 16:49:33 +04:00
theme.name = "vimix-dark-ruby";
iconTheme.name = "Vimix Ruby Dark";
};
home.file = {
"background.png" = {
enable = true;
source = ../../../config/background.png;
};
};
xdg.configFile = {
2023-08-02 16:55:52 +04:00
awesome = {
enable = true;
source = ../../../config/awesome;
recursive = true;
};
2023-08-13 03:26:33 +04:00
};
2023-08-02 16:49:33 +04:00
};
2023-07-21 17:12:20 +04:00
};
}