Deletged generated, testing new location scripts
This commit is contained in:
@@ -1,48 +0,0 @@
|
||||
# --- 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 = [ "hyprland-session.target" ];
|
||||
bindsTo = [ "hyprland-session.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.hypridle}/bin/hypridle";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
Environment = [
|
||||
"HOME=/home/${username}"
|
||||
"WAYLAND_DISPLAY=wayland-1"
|
||||
"XDG_RUNTIME_DIR=/run/user/1000"
|
||||
];
|
||||
};
|
||||
wantedBy = [ "hyprland-session.target" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user