mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
module moving mostly done
This commit is contained in:
parent
a9de747c25
commit
e78a971b9b
33 changed files with 455 additions and 447 deletions
33
modules/DE/dwm.nix
Normal file
33
modules/DE/dwm.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{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}
|
||||
'';
|
||||
defaultSession = "none+dwm";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue