nix-config/modules/desktops/awesome.nix

83 lines
1.7 KiB
Nix
Raw Normal View History

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;
};
};
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
xclip
brightnessctl
2023-10-15 16:02:50 +02:00
]
++ (with unstable; []);
};
# Flatpak
xdg.portal.enable = true;
xdg.portal.extraPortals = with pkgs; [xdg-desktop-portal-kde];
# Networking
networking.networkmanager.enable = true;
2023-10-15 16:02:50 +02:00
};
}