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 = [ imports = [
./qtile ./dm
./vscode.nix ./vscode.nix
./shell.nix ./shell.nix
./theming.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, 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 = [ assertions = [
{ {
assertion = osConfig.services.xserver.windowManager.qtile.enable; assertion = osConfig.services.xserver.windowManager.qtile.enable;
@ -15,8 +15,8 @@
} }
]; ];
home.file.".config/qtile/config.py".source = ./files/qtile.py; home.file.".config/qtile/config.py".source = ./qtile.py;
home.file.".background-image".source = ./files/background-image; home.file.".background-image".source = ./background-image;
home.packages = [ home.packages = [
# Widget dependencies # Widget dependencies

View file

@ -1,6 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
myConfig = { myConfig = {
qtile.enable = true; dm.qtile.enable = true;
vscode.enable = true; vscode.enable = true;
shell = { shell = {
bash.enable = true; bash.enable = true;