Created
March 28, 2019 23:50
-
-
Save mankyKitty/ab434a00108854ad6a3199e0f00c26e5 to your computer and use it in GitHub Desktop.
WUT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable some user level services | |
systemd.user.services = { | |
status-notifier-watcher = { | |
enable = true; | |
description= "status notifier watcher"; | |
wantedBy = [ "default.target" ]; | |
before = [ "taffybar.service" ]; | |
serviceConfig = { | |
Type = "simple"; | |
ExecStart = "${pkgs.haskellPackages.status-notifier-item}/bin/status-notifier-watcher"; | |
}; | |
}; | |
# nm-applet = { | |
# enable = true; | |
# description = "network manager applet"; | |
# wants = [ "status-notifier-watcher.service" ]; | |
# after = [ "status-notifier-watcher.service" "taffybar.service" ]; | |
# serviceConfig = { | |
# Type = "simple"; | |
# ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable --indicator"; | |
# }; | |
# }; | |
taffybar = { | |
enable = true; | |
description = "Taffybar"; | |
wants = [ "status-notifier-watcher.service" ]; | |
after = [ "status-notifier-watcher.service" ]; | |
restartIfChanged = true; | |
environment.XDG_DATA_HOME = "/home/manky/.local/share"; | |
environment.XDG_DATA_DIRS = "/run/opengl-driver/share:/run/opengl-driver-32/share:/home/manky/.nix-profile/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share:/etc/profiles/per-user/manky/share"; | |
environment.GDK_PIXBUF_MODULE_FILE = "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"; | |
serviceConfig = { | |
Type="simple"; | |
ExecStart="${pkgs.haskellPackages.taffybar}/bin/taffybar"; | |
Restart="always"; | |
RestartSec=3; | |
NotifyAccess="all"; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment