feat(nix): add salut service and nm-applet
This commit is contained in:
parent
6970b8c7d2
commit
e2abe10c28
5 changed files with 50 additions and 29 deletions
|
@ -4,14 +4,39 @@
|
|||
lib,
|
||||
packages',
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
# useful testing command:
|
||||
# for i in `seq 0 10`; do nix shell nixpkgs#libnotify --command notify-send notifiiiiiii "$i"; sleep 1; done
|
||||
|
||||
let
|
||||
inherit (import ../lib.nix {}) mkSimpleTrayService;
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
packages'.salut
|
||||
];
|
||||
|
||||
home.file.".config/salut/config.ini" = {
|
||||
xdg.configFile."salut/config.ini" = {
|
||||
enable = true;
|
||||
text = ''
|
||||
[notifications]
|
||||
timeout = 5
|
||||
|
||||
[window]
|
||||
auto-hide = true
|
||||
anchor = bottom
|
||||
|
||||
[mode]
|
||||
single = true
|
||||
do-not-disturb = false
|
||||
|
||||
[style]
|
||||
preference = dark
|
||||
'';
|
||||
onChange = "${pkgs.systemd}/bin/systemctl --user restart salut";
|
||||
};
|
||||
|
||||
systemd.user.services.salut = mkSimpleTrayService {
|
||||
execStart = "${packages'.salut}/bin/salut";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
{ pkgs, config, repoFlake, ... }:
|
||||
|
||||
{
|
||||
home.packages = [
|
||||
# required by any bar that has a tray plugin
|
||||
pkgs.libappindicator-gtk3
|
||||
];
|
||||
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
package = repoFlake.inputs.nixpkgs-wayland.outputs.packages.${pkgs.stdenv.hostPlatform.system}.waybar;
|
||||
|
@ -67,15 +72,6 @@
|
|||
};
|
||||
"clock#date".format = "{:%d %b %Y}";
|
||||
clock.format = "{:%H:%M %p}";
|
||||
|
||||
# "custom/hello-from-waybar" = {
|
||||
# format = "hello {}";
|
||||
# max-length = 40;
|
||||
# interval = "once";
|
||||
# exec = pkgs.writeShellScript "hello-from-waybar" ''
|
||||
# echo "from within waybar"
|
||||
# '';
|
||||
# };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue