mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
34 lines
735 B
Nix
34 lines
735 B
Nix
{suckless, ...}: {
|
|
pkgs,
|
|
config,
|
|
options,
|
|
lib,
|
|
self,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.localModules.DE.dwm;
|
|
in {
|
|
options.localModules.DE.dwm = {
|
|
enable = mkEnableOption "";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.gvfs.enable = true;
|
|
environment.systemPackages = [suckless.packages.${pkgs.system}.dmenu];
|
|
services.xserver = {
|
|
enable = true;
|
|
windowManager.dwm = {
|
|
enable = true;
|
|
package = suckless.packages.${pkgs.system}.dwm;
|
|
};
|
|
displayManager = {
|
|
sessionCommands = ''
|
|
${pkgs.feh}/bin/feh --bg-scale ${self + /misc/recursion.png}
|
|
${pkgs.numlockx}/bin/numlockx
|
|
'';
|
|
defaultSession = "none+dwm";
|
|
};
|
|
};
|
|
};
|
|
}
|