Restructure wm configuration for future expansion

This commit is contained in:
SebastianStork 2024-03-25 18:19:31 +01:00
parent 3509e1d959
commit d3ff309fd9
6 changed files with 11 additions and 6 deletions

View file

@ -1,6 +1,6 @@
{
imports = [
./qtile
./dm
./vscode.nix
./shell.nix
./theming.nix

View file

@ -0,0 +1,5 @@
{
imports = [
./qtile
];
}

View file

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 114 KiB

Before After
Before After

View file

@ -5,9 +5,9 @@
osConfig,
...
}: {
options.myConfig.qtile.enable = lib.mkEnableOption "";
options.myConfig.dm.qtile.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.qtile.enable {
config = lib.mkIf config.myConfig.dm.qtile.enable {
assertions = [
{
assertion = osConfig.services.xserver.windowManager.qtile.enable;
@ -15,8 +15,8 @@
}
];
home.file.".config/qtile/config.py".source = ./files/qtile.py;
home.file.".background-image".source = ./files/background-image;
home.file.".config/qtile/config.py".source = ./qtile.py;
home.file.".background-image".source = ./background-image;
home.packages = [
# Widget dependencies