nichts/modules/wms/x/awesome/awesome.nix

30 lines
744 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
pkgs,
lib,
config,
callPackage,
...
}:
with lib; let
2024-04-27 23:46:38 +02:00
username = config.modules.other.system.username;
cfg = config.modules.programs.awesome;
in {
options.modules.programs.awesome.enable = mkEnableOption "awesome";
2024-04-27 23:46:38 +02:00
config = mkIf cfg.enable {
services = {
displayManager.sddm.enable = true;
xserver = {
enable = true;
xkb = {
layout = "de, de";
variant = ",neo ";
options = "grp:alt_space_toggle";
};
windowManager.awesome.enable = true;
2024-05-22 14:29:45 +02:00
displayManager.setupCommands = "${pkgs.xorg.xrandr}/bin/xrandr --output HDMI-1 --rotate normal --output DP-2 --rotate normal --left-of HDMI-1 --output HDMI-0 --right-of HDMI-1";
2024-04-27 23:46:38 +02:00
};
};
2024-04-27 23:46:38 +02:00
};
}