fix env in systemd services
This commit is contained in:
parent
752bcecb9f
commit
5277f5f683
3 changed files with 9 additions and 6 deletions
|
@ -23,3 +23,4 @@ each host should have these files:
|
||||||
- laptop specific configuration (power profiles daemon, battery, etc)
|
- laptop specific configuration (power profiles daemon, battery, etc)
|
||||||
- sddm cursors no work :(
|
- sddm cursors no work :(
|
||||||
- try out the [new sddm options](https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=sddm)
|
- try out the [new sddm options](https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=sddm)
|
||||||
|
- gnome keyring / gcr for saving passwords
|
|
@ -14,18 +14,18 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
hm.services.hypridle = let
|
hm.services.hypridle = {
|
||||||
hyprctl = "${config.modules.desktop.hyprland.package}/bin/hyprctl";
|
|
||||||
in {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = cfg.package;
|
package = cfg.package;
|
||||||
|
|
||||||
lockCmd = "${pkgs.procps}/bin/pidof hyprlock || ${hyprctl} dispatch exec ${lib.getExe config.modules.desktop.hyprlock.package}";
|
lockCmd = "${pkgs.procps}/bin/pidof hyprlock || ${lib.getExe config.modules.desktop.hyprlock.package}";
|
||||||
unlockCmd = "${pkgs.procps}/bin/pkill -USR1 hyprlock";
|
unlockCmd = "${pkgs.procps}/bin/pkill -USR1 hyprlock";
|
||||||
|
|
||||||
beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session";
|
beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session";
|
||||||
|
|
||||||
listeners = [
|
listeners = let
|
||||||
|
hyprctl = "${config.modules.desktop.hyprland.package}/bin/hyprctl";
|
||||||
|
in [
|
||||||
{
|
{
|
||||||
timeout = 90; # 1.5 min
|
timeout = 90; # 1.5 min
|
||||||
onTimeout = "${hyprctl} dispatch dpms off"; # turn off screen
|
onTimeout = "${hyprctl} dispatch dpms off"; # turn off screen
|
||||||
|
|
|
@ -35,6 +35,8 @@ in {
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
package = cfg.package;
|
package = cfg.package;
|
||||||
|
|
||||||
|
systemd.variables = [ "--all" ];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
source = [];
|
source = [];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue