nixos/modules/desktop/xmonad/default.nix

112 lines
2.5 KiB
Nix
Raw Normal View History

2023-07-20 19:36:34 +04:00
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.xmonad;
in {
2023-07-23 15:35:18 +04:00
options.modules.desktop.xmonad = {
2023-07-20 19:36:34 +04:00
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
# https://nixos.wiki/wiki/XMonad
2023-07-20 19:36:34 +04:00
services.xserver = {
enable = true;
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
ghcArgs = [
"-hidir /tmp" # place interface files in /tmp, otherwise ghc tries to write them to the nix store
"-odir /tmp" # place object files in /tmp, otherwise ghc tries to write them to the nix store
# "-i${xmonad-contexts}" # tell ghc to search in the respective nix store path for the module
];
2023-07-20 19:36:34 +04:00
};
2023-07-21 17:12:20 +04:00
displayManager = {
lightdm = {
enable = true;
background = ../../../config/background.png;
greeters.gtk = {
enable = true;
theme = {
name = "vimix-dark-ruby";
package = pkgs.vimix-gtk-themes;
};
};
};
};
libinput = {
enable = true;
# mouse
mouse = {
accelProfile = "flat";
};
# touchpad
2023-07-21 17:12:20 +04:00
touchpad = {
accelProfile = "flat";
};
};
2023-07-23 15:35:48 +04:00
};
2023-07-21 17:12:20 +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-07-23 15:46:05 +04:00
environment.systemPackages = with pkgs; [
2023-07-24 01:02:56 +04:00
# bar
2023-07-23 15:46:05 +04:00
xmobar
2023-07-24 01:02:56 +04:00
# tray
2023-07-24 01:15:51 +04:00
trayer
2023-07-23 15:46:05 +04:00
];
home-manager.users.sako = {pkgs, ...}: {
2023-07-21 17:12:20 +04:00
home.pointerCursor = {
name = "Catppuccin-Mocha-Dark";
2023-07-21 17:12:20 +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";
};
2023-07-23 15:46:05 +04:00
home.file = {
"background.png" = {
enable = true;
source = ../../../config/background.png;
};
};
2023-07-21 17:12:20 +04:00
xdg.configFile = {
xmonad = {
source = ../../../config/xmonad;
recursive = true;
2023-07-21 17:12:20 +04:00
};
2023-07-23 15:46:05 +04:00
xmobar = {
source = ../../../config/xmobar;
recursive = true;
};
};
2023-07-20 19:36:34 +04:00
};
};
2023-07-20 19:36:34 +04:00
}