mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moving towards modules...
This commit is contained in:
parent
32bf78aa36
commit
f911f3f44d
18 changed files with 288 additions and 237 deletions
32
modules/DE-WM/dwm.nix
Normal file
32
modules/DE-WM/dwm.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{suckless, ...}: {
|
||||
pkgs,
|
||||
config,
|
||||
options,
|
||||
lib,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.localModules.dwm;
|
||||
in {
|
||||
options.localModules.dwm = {
|
||||
enable = mkEnableOption "";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [suckless.packages.${pkgs.system}.dmenu];
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
windowManager.dwm = {
|
||||
enable = true;
|
||||
package = suckless.packages.${pkgs.system}.dwm;
|
||||
};
|
||||
displayManager = {
|
||||
sessionCommands = ''
|
||||
feh --bg-scale ${self + /misc/recursion.png}
|
||||
'';
|
||||
defaultSession = "none+dwm";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue