forked from pub-solar/os
Benjamin Bädorf
4c0991c7e1
Hibernation is now a core option: ``` pub-solar.core.hibernation.enable = true; ``` And there's a paranoia mode, that keeps the disk encrypted as much as possible by enabling hibernation and removing the options for sleep, screen locking. Idle locking now hibernates, and it does it on very short notice.
22 lines
652 B
Nix
22 lines
652 B
Nix
{ pkgs, ... }:
|
|
{
|
|
Unit = {
|
|
Description = "Highly customizable Wayland bar for Sway and Wlroots based compositors.";
|
|
Documentation = "https://github.com/Alexays/Waybar/wiki/";
|
|
BindsTo = [ "sway-session.target" ];
|
|
After = [ "graphical-session-pre.target" "network-online.target" ];
|
|
Wants = [ "graphical-session-pre.target" "network-online.target" "blueman-applet.service" ];
|
|
};
|
|
|
|
Service = {
|
|
Type = "dbus";
|
|
Environment = "PATH=${pkgs.bash}/bin:${pkgs.pavucontrol}/bin";
|
|
BusName = "fr.arouillard.waybar";
|
|
ExecStart = "${pkgs.waybar}/bin/waybar";
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "sway-session.target" ];
|
|
};
|
|
}
|