add DankMaterialShell

This commit is contained in:
2025-11-29 15:44:07 +02:00
parent f6e1b7c8ea
commit b2286df218
9 changed files with 640 additions and 132 deletions
+44
View File
@@ -0,0 +1,44 @@
{
config,
inputs,
lib,
perSystem,
pkgs,
...
}:
with lib; let
cfg = config.desktop.dms;
in {
imports = with inputs; [
dankMaterialShell.nixosModules.dankMaterialShell
dankMaterialShell.nixosModules.greeter
niri-flake.nixosModules.niri
];
options = {
desktop.dms.enable =
mkEnableOption "enable DankMaterialShell";
};
config = mkIf cfg.enable {
xdg.portal = {
enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gnome xdg-desktop-portal-gtk];
config.niri.default = ["gnome" "gtk"];
};
module.desktop.gnome-keyring.enable = true;
sound.pipewire.enable = true;
programs.niri = {
enable = true;
package = perSystem.niri.niri;
};
programs.dankMaterialShell = {
enable = true;
greeter = {
enable = true;
compositor.name = "niri";
};
};
};
}