feat(desktop): move notification-daemon config to homes and use home-manager modules
This commit is contained in:
parent
4a50de5eed
commit
60ee8b4544
5 changed files with 21 additions and 16 deletions
6
homes/x86_64-linux/rafiq/desktop/notification-daemon.nix
Normal file
6
homes/x86_64-linux/rafiq/desktop/notification-daemon.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
home.sessionVariables.NOTIFICATION_DAEMON = "mako";
|
||||
services.mako.settings = {
|
||||
default-timeout = 10000;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
|
@ -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 "";
|
||||
|
|
14
modules/nixos/desktop/notification-daemon/default.nix
Normal file
14
modules/nixos/desktop/notification-daemon/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue