This commit is contained in:
Sakooooo 2023-08-03 16:22:07 +03:00
parent eb54eb7237
commit 150fa1c9c5
Signed by: sako
GPG key ID: 3FD715D87D7725E0
6 changed files with 19 additions and 26 deletions

View file

@ -16,10 +16,8 @@
kitty.enable = true;
xmonad.enable = false;
awesome.enable = false;
dwm = {
enable = true;
dwmblocks.enable = false;
};
dwm.enable = true;
picom.enable = true;
gnome.enable = false;
dunst.enable = true;
browsers = {

View file

@ -17,5 +17,6 @@
./chat
./media
./dunst
./picom
];
}

View file

@ -4,9 +4,6 @@ let
cfg = config.modules.desktop.dwm;
in
{
imports = [
./dwmblocks.nix
];
options.modules.desktop.dwm = {
enable = mkEnableOption false;
};

View file

@ -1,16 +0,0 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.desktop.dwm.dwmblocks;
in
{
options.modules.desktop.dwm.dwmblocks = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
dwmblocks
];
};
}

View file

@ -0,0 +1,16 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.desktop.picom;
in
{
options.modules.desktop.picom = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
picom
];
};
}

View file

@ -22,9 +22,6 @@
dwm = prev.dwm.overrideAttrs (old: {
src = ../config/dwm;
});
dwmblocks = prev.dwmblocks.overrideAttrs (old: {
src = ../config/dwmblocks;
});
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will