Skip to content

Commit

Permalink
feat: install dashboard programm
Browse files Browse the repository at this point in the history
  • Loading branch information
kmein committed Mar 15, 2024
1 parent fe199e0 commit cad3d7e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions configs/i3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
niveumPackages,
...
}: let
dashboard = pkgs.writers.writeDashBin "dashboard" ''
${pkgs.alacritty}/bin/alacritty --class wtf --command ${pkgs.writers.writeDash "dashboard-inner" ''
export WTF_OWM_API_KEY="$(cat ${config.age.secrets.openweathermap-api-key.path})"
export WTF_MINIFLUX_API_KEY="$(cat ${config.age.secrets.miniflux-api-token.path})"
exec ${niveumPackages.dashboard}/bin/dashboard
''}
'';
inherit (import ../lib) defaultApplications;
klem = niveumPackages.klem.override {
config.dmenu = "${pkgs.dmenu}/bin/dmenu -i -p klem";
Expand Down Expand Up @@ -82,6 +89,8 @@ in {

programs.slock.enable = true;

environment.systemPackages = [dashboard];

services.xserver = {
displayManager.defaultSession = "none+i3";
windowManager.i3 = {
Expand Down Expand Up @@ -296,11 +305,7 @@ in {
for_window [class="obsidian"] , move scratchpad
assign [class="wtf"] ${infoWorkspace}
exec ${pkgs.alacritty}/bin/alacritty --class wtf --command ${pkgs.writers.writeDash "dashboard" ''
export WTF_OWM_API_KEY="$(cat ${config.age.secrets.openweathermap-api-key.path})"
export WTF_MINIFLUX_API_KEY="$(cat ${config.age.secrets.miniflux-api-token.path})"
exec ${niveumPackages.dashboard}/bin/dashboard
''}
exec ${dashboard}/bin/dashboard
'';
config = lib.mkMerge [
{
Expand Down

0 comments on commit cad3d7e

Please sign in to comment.