mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 03:31:34 +01:00
Restructure wm configuration for future expansion
This commit is contained in:
parent
3509e1d959
commit
d3ff309fd9
6 changed files with 11 additions and 6 deletions
41
modules/home/dm/qtile/default.nix
Normal file
41
modules/home/dm/qtile/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}: {
|
||||
options.myConfig.dm.qtile.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.dm.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 = ./qtile.py;
|
||||
home.file.".background-image".source = ./background-image;
|
||||
|
||||
home.packages = [
|
||||
# Widget dependencies
|
||||
pkgs.python311Packages.iwlib
|
||||
pkgs.python311Packages.psutil
|
||||
pkgs.lm_sensors
|
||||
|
||||
# Hotkey dependencies
|
||||
pkgs.playerctl
|
||||
pkgs.brightnessctl
|
||||
];
|
||||
|
||||
myConfig.rofi.enable = true;
|
||||
|
||||
services.picom = {
|
||||
enable = true;
|
||||
vSync = true;
|
||||
};
|
||||
|
||||
services.dunst.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue