better systemd user services
This commit is contained in:
parent
a7cea64f06
commit
47e7ac5479
@ -91,8 +91,10 @@ in {
|
||||
Service = {
|
||||
Environment =
|
||||
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/balsoft/bin";
|
||||
After = "sway-session.target";
|
||||
WantedBy = "sway-session.target";
|
||||
};
|
||||
Install = {
|
||||
After = [ "sway-session.target" ];
|
||||
WantedBy = lib.mkForce [ "sway-session.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
with pkgs.my-lib; {
|
||||
xdg.portal.enable = true;
|
||||
|
||||
services.dbus.packages =
|
||||
[ pkgs.firefox pkgs.systemd pkgs.papirus-icon-theme ];
|
||||
services.udev.packages = [ pkgs.libmtp pkgs.media-player-info ];
|
||||
|
@ -1,6 +1,14 @@
|
||||
{ pkgs, config, ... }: {
|
||||
home-manager.users.balsoft = {
|
||||
wayland.windowManager.sway.config.startup = [{ command = "mako"; }];
|
||||
systemd.user.services.mako = {
|
||||
Service = {
|
||||
ExecStart = "${pkgs.mako}/bin/mako";
|
||||
};
|
||||
Install = {
|
||||
After = [ "sway-session.target" ];
|
||||
WantedBy = [ "sway-session.target" ];
|
||||
};
|
||||
};
|
||||
programs.mako = with pkgs.my-lib.thmHash; {
|
||||
enable = true;
|
||||
layer = "overlay";
|
||||
|
@ -82,7 +82,7 @@
|
||||
else
|
||||
cmdstat="✘"
|
||||
fi
|
||||
if [ ! -z "$cmd" ]; then
|
||||
if [ ! -z "$cmd" ] && [[ $cmd_time -gt 3 ]]; then
|
||||
${pkgs.libnotify}/bin/notify-send -i utilities-terminal -u low "$cmdstat $cmd" "in `date -u -d @$cmd_time +'%T'`"
|
||||
fi
|
||||
unset cmd
|
||||
|
Loading…
Reference in New Issue
Block a user