mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
Complete overhaul
This commit is contained in:
commit
d30d11566d
38 changed files with 1373 additions and 0 deletions
44
modules/home/qtile/default.nix
Normal file
44
modules/home/qtile/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: {
|
||||
options.myConfig.qtile.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.qtile.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = osConfig.services.xserver.windowManager.qtile.enable;
|
||||
message = "Qtile has to be enabled on the system level";
|
||||
}
|
||||
];
|
||||
|
||||
home.file.".config/qtile/config.py".source = ./files/qtile.py;
|
||||
home.file.".background-image".source = ./files/background-image;
|
||||
|
||||
home.packages = [
|
||||
# Widget dependencies
|
||||
pkgs.python311Packages.iwlib
|
||||
pkgs.python311Packages.psutil
|
||||
pkgs.lm_sensors
|
||||
|
||||
# Hotkey dependencies
|
||||
pkgs.playerctl
|
||||
pkgs.brightnessctl
|
||||
];
|
||||
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
theme = ./files/rofi-theme.rasi;
|
||||
};
|
||||
|
||||
services.picom = {
|
||||
enable = true;
|
||||
vSync = true;
|
||||
};
|
||||
|
||||
services.dunst.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue