Add xfce4-notifyd configuration
This commit is contained in:
parent
45fd12cf1c
commit
237f5f7fb0
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
imports = [ ./packages.nix ];
|
imports = [ ./packages.nix ../modules/X11/xfce4-notifyd.nix ];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
# Set up Java font style
|
# Set up Java font style
|
||||||
|
@ -46,6 +46,9 @@ with lib;
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Notification system
|
||||||
|
services.X11.xfce4-notifyd.enable = true;
|
||||||
|
|
||||||
# IBus configuration
|
# IBus configuration
|
||||||
dconf.settings."desktop/ibus/general" = {
|
dconf.settings."desktop/ibus/general" = {
|
||||||
engines-order = hm.gvariant.mkArray hm.gvariant.type.string [ "xkb:jp::jpn" "mozc-jp" "Bamboo" ];
|
engines-order = hm.gvariant.mkArray hm.gvariant.type.string [ "xkb:jp::jpn" "mozc-jp" "Bamboo" ];
|
||||||
|
|
|
@ -18,7 +18,6 @@ in
|
||||||
mailspring
|
mailspring
|
||||||
discordPkg
|
discordPkg
|
||||||
pavucontrol # PulseAudio control panel
|
pavucontrol # PulseAudio control panel
|
||||||
xfce.xfce4-notifyd # Notification
|
|
||||||
|
|
||||||
## CLI stuff
|
## CLI stuff
|
||||||
xsel # Clipboard management
|
xsel # Clipboard management
|
||||||
|
|
24
home/modules/X11/xfce4-notifyd.nix
Normal file
24
home/modules/X11/xfce4-notifyd.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.services.X11.xfce4-notifyd;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.services.X11.xfce4-notifyd.enable = mkEnableOption "Notification Manager for xfce4";
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
xdg.configFile."autostart/xfce4-notifyd.desktop" = {
|
||||||
|
# Remove the "OnlyShowIn" line
|
||||||
|
source = pkgs.runCommand "xfce4-notifyd.desktop"
|
||||||
|
{
|
||||||
|
buildInput = [ pkgs.gnused ];
|
||||||
|
preferLocalBuild = true;
|
||||||
|
} ''
|
||||||
|
sed "s/OnlyShowIn/# OnlyShowIn/g" \
|
||||||
|
< ${pkgs.xfce.xfce4-notifyd}/etc/xdg/autostart/xfce4-notifyd.desktop \
|
||||||
|
> $out
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue