Deletged generated, testing new location scripts
This commit is contained in:
@@ -1,40 +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";
|
||||
waybarPath = "${flakeRoot}/generated/.config/waybar";
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ pkgs.waybar ];
|
||||
|
||||
home-manager.users.${username} = {
|
||||
home.file = {
|
||||
".config/waybar/config.jsonc".source = "${waybarPath}/config.jsonc";
|
||||
".config/waybar/style-dark.css".source = "${waybarPath}/style-dark.css";
|
||||
};
|
||||
|
||||
home.activation.MakeMutable = {
|
||||
after = [ "writeBoundary" ];
|
||||
before = [];
|
||||
data = ''
|
||||
rm -f $HOME/.config/waybar/*
|
||||
cp ${waybarPath}/* $HOME/.config/waybar/
|
||||
chmod u+w $HOME/.config/waybar/*
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services.waybar = {
|
||||
description = "Waybar for Hyprland";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.waybar}/bin/waybar";
|
||||
Restart = "always";
|
||||
Environment = ''
|
||||
WAYLAND_DISPLAY=${config.environment.sessionVariables.WAYLAND_DISPLAY or "wayland-0"}
|
||||
XDG_CURRENT_DESKTOP=Hyprland
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user