nixos/modules/desktop/bspwm/default.nix

78 lines
1.6 KiB
Nix
Raw Normal View History

2023-07-08 20:00:13 +04:00
{ outputs, options, config, lib, pkgs, ...}:
2023-07-08 19:30:16 +04:00
with lib;
let
cfg = config.modules.desktop.bspwm;
in
{
options.modules.desktop.bspwm = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
2023-07-11 00:07:17 +04:00
windowManager = {
bspwm.enable = true;
};
2023-07-11 00:12:00 +04:00
displayManager = {
2023-07-11 00:12:25 +04:00
defaultSession = "none+bspwm";
2023-07-11 00:12:00 +04:00
lightdm = {
2023-07-10 23:52:55 +04:00
enable = true;
2023-07-11 00:18:02 +04:00
background = ../../../config/bspwm/background.png;
2023-07-11 00:35:01 +04:00
greeters.mini = {
2023-07-10 23:59:27 +04:00
enable = true;
2023-07-11 00:35:01 +04:00
user = "sako";
extraConfig = ''
[greeter]
show-password-label = true
2023-07-11 00:44:35 +04:00
password-label-text = whats the magic word?
[greeter-theme]
password-border-color = "#08090e"
password-border-width = 1px
2023-07-11 00:35:01 +04:00
'';
2023-07-10 23:59:27 +04:00
};
2023-07-11 00:12:00 +04:00
};
2023-07-10 23:52:55 +04:00
};
2023-07-10 00:31:08 +04:00
libinput = {
enable = true;
# no mouse accel
mouse = {
accelProfile = "flat";
};
# no touchpad accel
touchpad = {
accelProfile = "flat";
};
};
2023-07-08 19:30:16 +04:00
};
users.users.sako.packages = with pkgs; [
2023-07-08 20:00:13 +04:00
polybar
rofi
2023-07-11 07:32:58 +04:00
# network
2023-07-09 02:38:42 +04:00
networkmanagerapplet
2023-07-11 07:32:58 +04:00
# brightness
brightnessctl
2023-07-08 19:30:16 +04:00
];
home-manager.users.sako = { pkgs , ...}: {
2023-07-12 00:21:20 +04:00
gtk = {
enable = true;
theme = {
name = "Vimix-dark";
package = pkgs.vimix-gtk-themes;
2023-07-08 19:30:16 +04:00
};
2023-07-08 20:00:13 +04:00
};
2023-07-12 00:21:20 +04:00
xdg.configFile = {
bspwm = {
source = ../../../config/bspwm;
};
sxhkd = {
source = ../../../config/sxhkd;
};
2023-07-08 20:00:13 +04:00
};
2023-07-08 19:30:16 +04:00
};
};
}