mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 07:14:34 +00:00
Add vesktop
This commit is contained in:
parent
f726805e5c
commit
8f4f9a7bd9
|
@ -1,5 +1,6 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
./spotify
|
./spotify
|
||||||
|
./vesktop
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
30
home/programs/graphical/apps/vesktop/default.nix
Normal file
30
home/programs/graphical/apps/vesktop/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
osConfig,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
|
||||||
|
cfg = osConfig.myOptions.home-manager.programs.vesktop;
|
||||||
|
in {
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [ vesktop ];
|
||||||
|
|
||||||
|
systemd.user.services."vesktop" = mkIf cfg.autoStart {
|
||||||
|
Unit = {
|
||||||
|
Description = "Vesktop (An alternate client for Discord with Vencord built-in)";
|
||||||
|
After = [ "graphical-session.target" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
Restart = "on-failure";
|
||||||
|
ExecStart = "${pkgs.vesktop}/bin/vesktop";
|
||||||
|
};
|
||||||
|
|
||||||
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -62,6 +62,7 @@
|
||||||
".mozilla"
|
".mozilla"
|
||||||
".mullvad"
|
".mullvad"
|
||||||
".config/chromium"
|
".config/chromium"
|
||||||
|
".config/vesktop"
|
||||||
".local/share/gnupg"
|
".local/share/gnupg"
|
||||||
".local/share/zoxide"
|
".local/share/zoxide"
|
||||||
".local/share/wakatime"
|
".local/share/wakatime"
|
||||||
|
@ -137,6 +138,10 @@
|
||||||
};
|
};
|
||||||
spotify.enable = true;
|
spotify.enable = true;
|
||||||
stremio.enable = true;
|
stremio.enable = true;
|
||||||
|
vesktop = {
|
||||||
|
enable = true;
|
||||||
|
autoStart = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,5 +28,9 @@ in
|
||||||
|
|
||||||
spotify.enable = mkEnableOption "Spotify";
|
spotify.enable = mkEnableOption "Spotify";
|
||||||
stremio.enable = mkEnableOption "Stremio free media center";
|
stremio.enable = mkEnableOption "Stremio free media center";
|
||||||
|
vesktop = {
|
||||||
|
enable = mkEnableOption "Vesktop (An alternate client for Discord with Vencord built-in)";
|
||||||
|
autoStart = mkEnableOption "Auto-Start for Vesktop";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue