dwl: wayland-session setup
This commit is contained in:
parent
28b5d14f1b
commit
d0af44785e
1 changed files with 12 additions and 2 deletions
|
@ -7,13 +7,23 @@ in
|
|||
options.snowhawk.dwl = {
|
||||
enable = lib.mkEnableOption "dwl";
|
||||
|
||||
package = lib.mkPackageOption pkgs "dwl" { };
|
||||
package = lib.mkOption {
|
||||
type = with lib.types; package;
|
||||
default = pkgs.dwl;
|
||||
apply = p: p.overrideAttrs {
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/wayland-sessions
|
||||
install $src/dwl.desktop -Dt $out/share/wayland-sessions
|
||||
'';
|
||||
passthru.providedSessions = [ "dwl" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.graphical-desktop.enable = lib.mkDefault true;
|
||||
|
||||
services.displayManager.sessionPackages = cfg.package;
|
||||
services.displayManager.sessionPackages = [ cfg.package ];
|
||||
services.displayManager.defaultSession = "dwl";
|
||||
|
||||
security = {
|
||||
|
|
Loading…
Reference in a new issue