2021-09-14 20:55:50 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2022-03-23 12:42:04 +01:00
|
|
|
let cfg = config.modules.desktop;
|
|
|
|
in {
|
2022-04-05 11:09:37 +02:00
|
|
|
imports = [ ./apps ./bspwm ./gtk.nix ./xmonad ./sway ];
|
2021-09-14 20:55:50 +02:00
|
|
|
|
2022-03-23 12:42:04 +01:00
|
|
|
options.modules.desktop = {
|
|
|
|
name = lib.mkOption {
|
|
|
|
default = "bspwm";
|
2022-04-05 11:09:37 +02:00
|
|
|
type = lib.types.enum [ "bspwm" "xmonad" "sway" ];
|
2022-03-23 12:42:04 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
home-manager.users.moritz = {
|
|
|
|
services.unclutter.enable = true;
|
2022-02-07 14:24:24 +01:00
|
|
|
|
2022-03-23 12:42:04 +01:00
|
|
|
xdg = {
|
|
|
|
enable = true;
|
|
|
|
configFile = {
|
|
|
|
"wallpapers/" = {
|
|
|
|
source = ./wallpapers;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2022-02-07 14:24:24 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-03-23 12:42:04 +01:00
|
|
|
# Remap capslock to esc and shift + capslock to capslock
|
|
|
|
services.xserver.xkbOptions =
|
|
|
|
"terminate:ctrl_alt_bksp,caps:escape_shifted_capslock";
|
2022-02-07 14:24:24 +01:00
|
|
|
};
|
2021-09-14 20:55:50 +02:00
|
|
|
}
|