feat(desktop): move notification-daemon config to homes and use home-manager modules

This commit is contained in:
Mohammad Rafiq 2025-06-14 15:23:03 +08:00
parent 4a50de5eed
commit 60ee8b4544
No known key found for this signature in database
5 changed files with 21 additions and 16 deletions

View file

@ -0,0 +1,6 @@
{
home.sessionVariables.NOTIFICATION_DAEMON = "mako";
services.mako.settings = {
default-timeout = 10000;
};
}

View file

@ -1,14 +0,0 @@
{ osConfig, lib, ... }:
{
config = lib.mkMerge [
(lib.mkIf (osConfig.desktop.notification-daemon == "mako") {
home.sessionVariables.NOTIFICATION_DAEMON = "mako";
services.mako = {
enable = true;
settings = {
default-timeout = 10000;
};
};
})
];
}

View file

@ -23,7 +23,6 @@ in
};
windowManager = lib.pantheon.mkStrOption;
terminal = lib.pantheon.mkStrOption;
notification-daemon = lib.pantheon.mkStrOption;
status-bar = lib.pantheon.mkStrOption;
enableSpotifyd = lib.mkEnableOption "";
enableSteam = lib.mkEnableOption "";

View file

@ -0,0 +1,14 @@
{ lib, config, ... }:
let
inherit (lib) mkEnableOption singleton;
cfg = config.desktop.notification-daemon;
in
{
options.desktop.notification-daemon = {
mako.enable = mkEnableOption "";
};
config.home-manager.sharedModules = singleton {
services.mako.enable = cfg.mako.enable;
};
}

View file

@ -5,9 +5,9 @@
lockscreen.hyprlock.enable = true;
launcher.fuzzel.enable = true;
media-player.vlc.enable = true;
notification-daemon.mako.enable = true;
windowManager = "hyprland";
terminal = "ghostty";
notification-daemon = "mako";
status-bar = "waybar";
mainMonitor = {
id = "desc:OOO AN-270W04K";