2021-09-09 21:55:28 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2021-09-14 18:43:49 +02:00
|
|
|
{
|
|
|
|
services = {
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "de";
|
|
|
|
|
|
|
|
displayManager = {
|
|
|
|
defaultSession = "none+bspwm";
|
|
|
|
|
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "moritz";
|
|
|
|
};
|
2021-10-03 12:29:45 +02:00
|
|
|
lightdm = { enable = true; };
|
2021-09-14 18:43:49 +02:00
|
|
|
};
|
|
|
|
windowManager.bspwm.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2021-10-03 12:29:45 +02:00
|
|
|
|
|
|
|
console.keyMap = "de";
|
2021-09-29 16:27:02 +02:00
|
|
|
|
2021-09-14 18:43:49 +02:00
|
|
|
home-manager.users.moritz = {
|
2021-10-19 11:12:40 +02:00
|
|
|
xsession.windowManager.bspwm = {
|
|
|
|
enable = true;
|
|
|
|
rules = {
|
|
|
|
"Zathura" = { state = "tiled"; };
|
|
|
|
"Emacs" = { state = "tiled"; };
|
|
|
|
"feh" = { state = "floating"; };
|
|
|
|
};
|
|
|
|
settings = {
|
|
|
|
border_width = 2;
|
|
|
|
window_gap = 5;
|
|
|
|
borderless_monocle = true;
|
|
|
|
gapless_monocle = true;
|
|
|
|
focus_follows_pointer = true;
|
|
|
|
};
|
|
|
|
startupPrograms = [
|
|
|
|
"${pkgs.systemd}/bin/systemctl --user start polybar.service"
|
|
|
|
"feh --bg-fill ~/.config/wallpaper/dracula.png"
|
2021-11-22 11:13:38 +01:00
|
|
|
"synology-drive"
|
2021-10-19 11:12:40 +02:00
|
|
|
];
|
|
|
|
extraConfig = builtins.readFile ./bspwmrc;
|
|
|
|
|
|
|
|
};
|
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = builtins.readFile ./sxhkdrc;
|
|
|
|
};
|
2021-09-10 09:14:03 +02:00
|
|
|
|
2021-09-09 21:55:28 +02:00
|
|
|
xdg = {
|
|
|
|
enable = true;
|
2021-10-19 11:12:40 +02:00
|
|
|
configFile = { "wallpaper/dracula.png" = { source = ./dracula.png; }; };
|
2021-09-09 21:55:28 +02:00
|
|
|
};
|
2021-10-03 12:29:45 +02:00
|
|
|
home.packages = with pkgs; [ feh playerctl pamixer brightnessctl ];
|
2021-09-09 21:55:28 +02:00
|
|
|
};
|
|
|
|
}
|