31 lines
690 B
Nix
31 lines
690 B
Nix
{ config, lib, pkgs, ... }:
|
|
let cfg = config.modules.desktop;
|
|
in {
|
|
imports = [ ./apps ./bspwm ./gtk.nix ];
|
|
|
|
options.modules.desktop = {
|
|
name = lib.mkOption {
|
|
default = "bspwm";
|
|
type = lib.types.enum [ "bspwm" ];
|
|
};
|
|
};
|
|
|
|
config = {
|
|
home-manager.users.moritz = {
|
|
services.unclutter.enable = true;
|
|
|
|
xdg = {
|
|
enable = true;
|
|
configFile = {
|
|
"wallpapers/" = {
|
|
source = ./wallpapers;
|
|
recursive = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
# Remap capslock to esc and shift + capslock to capslock
|
|
services.xserver.xkbOptions =
|
|
"terminate:ctrl_alt_bksp,caps:escape_shifted_capslock";
|
|
};
|
|
}
|