dotfiles/modules/desktop/default.nix

32 lines
690 B
Nix
Raw Normal View History

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 {
imports = [ ./apps ./bspwm ./gtk.nix ];
2021-09-14 20:55:50 +02:00
2022-03-23 12:42:04 +01:00
options.modules.desktop = {
name = lib.mkOption {
default = "bspwm";
type = lib.types.enum [ "bspwm" ];
};
};
config = {
home-manager.users.moritz = {
services.unclutter.enable = true;
2022-03-23 12:42:04 +01:00
xdg = {
enable = true;
configFile = {
"wallpapers/" = {
source = ./wallpapers;
recursive = true;
};
};
};
};
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";
};
2021-09-14 20:55:50 +02:00
}