Regenerated
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
basePath = "${flakeRoot}/generated/.config";
|
||||
assetPath = "${flakeRoot}/generated/.config/hypr";
|
||||
in
|
||||
{
|
||||
#################################
|
||||
# Install hypridle system-wide
|
||||
#################################
|
||||
environment.systemPackages = [ pkgs.hypridle ];
|
||||
|
||||
#################################
|
||||
# Deploy config
|
||||
#################################
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
home.file = {
|
||||
".config/hypr/hypridle.conf" = {
|
||||
text = builtins.readFile "${assetPath}/hypridle.conf";
|
||||
force = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#################################
|
||||
# Systemd user service
|
||||
#################################
|
||||
systemd.user.services.hypridle = {
|
||||
description = "Hypridle (Hyprland idle daemon)";
|
||||
after = [ "graphical-session.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.hypridle}/bin/hypridle";
|
||||
Restart = "always";
|
||||
Environment = ''
|
||||
WAYLAND_DISPLAY=${config.environment.sessionVariables.WAYLAND_DISPLAY or "wayland-0"}
|
||||
XDG_CURRENT_DESKTOP=Hyprland
|
||||
'';
|
||||
};
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user