2023-10-15 16:02:50 +02:00
|
|
|
#
|
|
|
|
# AwesomeWM Configuration
|
|
|
|
# Enable with "awesome.enable = true;"
|
|
|
|
#
|
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
vars,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; {
|
|
|
|
options = {
|
|
|
|
awesome = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf (config.awesome.enable) {
|
|
|
|
services = {
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "de";
|
2023-10-15 20:21:26 +02:00
|
|
|
# dpi = 180;
|
2023-10-15 16:02:50 +02:00
|
|
|
libinput.enable = true;
|
|
|
|
modules = [pkgs.xf86_input_wacom];
|
|
|
|
wacom.enable = true;
|
|
|
|
windowManager.awesome.enable = true;
|
2023-10-15 20:21:26 +02:00
|
|
|
# deviceSection = ''
|
|
|
|
# Identifier "Device0"
|
|
|
|
# Driver "nvidia"
|
|
|
|
# VendorName "NVIDIA Corporation"
|
|
|
|
# BoardName "NVIDIA GeForce RTX 2070 SUPER"
|
|
|
|
# '';
|
|
|
|
|
|
|
|
# serverLayoutSection = ''
|
|
|
|
# Identifier "Mouse0"
|
|
|
|
# Driver "mouse"
|
|
|
|
# Option "Protocol" "auto"
|
|
|
|
# Option "Device" "/dev/input/mice"
|
|
|
|
# Option "Emulate3Buttons" "no"
|
|
|
|
# Option "ZAxisMapping" "4 5"
|
|
|
|
# '';
|
|
|
|
# monitorSection = ''
|
|
|
|
# Identifier "Monitor0"
|
|
|
|
# VendorName "Unknown"
|
|
|
|
# ModelName "Acer XF270HU"
|
|
|
|
# HorizSync 222.0 - 222.0
|
|
|
|
# VertRefresh 40.0 - 144.0
|
|
|
|
# Option "DPMS"
|
|
|
|
# '';
|
|
|
|
# screenSection = ''
|
|
|
|
# Identifier "Screen0"
|
|
|
|
# Device "Device0"
|
|
|
|
# Monitor "Monitor0"
|
|
|
|
# DefaultDepth 24
|
|
|
|
# Option "Stereo" "0"
|
|
|
|
# Option "nvidiaXineramaInfoOrder" "DFP-5"
|
|
|
|
# Option "metamodes" "DP-4: 2560x1440_144 +1920+0, DP-0: 1920x1080_75 +0+0"
|
|
|
|
# Option "SLI" "Off"
|
|
|
|
# Option "MultiGPU" "Off"
|
|
|
|
# Option "BaseMosaic" "off"
|
|
|
|
# SubSection "Display"
|
|
|
|
# Depth 24
|
|
|
|
# EndSubSection
|
|
|
|
# '';
|
2023-10-15 16:02:50 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.users.${vars.user} = {
|
2023-10-15 20:21:26 +02:00
|
|
|
home.file.".wallpapers" = {
|
|
|
|
source = ../../rsc/wallpaper;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-10-15 16:02:50 +02:00
|
|
|
home.file.".config/awesome/" = {
|
|
|
|
source = ../../rsc/config/awesome;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-10-15 16:14:30 +02:00
|
|
|
home.file.".config/picom/" = {
|
2023-10-15 16:02:50 +02:00
|
|
|
source = ../../rsc/config/picom;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-10-15 16:14:30 +02:00
|
|
|
home.file.".config/rofi" = {
|
|
|
|
source = ../../rsc/config/rofi;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
home.file.".config/flameshot" = {
|
|
|
|
source = ../../rsc/config/flameshot;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
home.file.".config/zathura" = {
|
|
|
|
source = ../../rsc/config/zathura;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-10-15 16:02:50 +02:00
|
|
|
};
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs;
|
|
|
|
[
|
|
|
|
picom
|
|
|
|
rofi
|
|
|
|
redshift
|
|
|
|
xbindkeys
|
|
|
|
clipmenu
|
2023-10-15 16:14:30 +02:00
|
|
|
flameshot
|
2023-10-15 16:02:50 +02:00
|
|
|
]
|
|
|
|
++ (with unstable; []);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|