New structure since I kept struggling with the home-manager implemnentation
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{ config, pkgs, lib, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
# Pad naar de wallpaper config in de flake
|
||||
wallpaperConf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.toml";
|
||||
in
|
||||
{
|
||||
# Installeer wpaperd voor de gebruiker
|
||||
home.packages = [ pkgs.wpaperd ];
|
||||
|
||||
# Plaats wallpaper.toml automatisch in $HOME/.config/wpaperd
|
||||
home.file.".config/wpaperd/wallpaper.toml".source = wallpaperConf;
|
||||
|
||||
# Systemd user service
|
||||
systemd.user.services.wpaperd = {
|
||||
description = "wpaperd wallpaper daemon";
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${config.home.homeDirectory}/.config/wpaperd/wallpaper.toml";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 1;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user