Compare commits

..

4 commits

Author SHA1 Message Date
ItsDrike 4f7c9e8a71
Add fastfetch + toggleability 2024-06-20 16:22:34 +02:00
ItsDrike 5df0ffe4e5
Add hyfetch settings 2024-06-20 16:09:01 +02:00
ItsDrike 5c1b4748e0
Fix typo (in eww-window service partof) 2024-06-20 16:04:20 +02:00
ItsDrike 8f4f9a7bd9
Add vesktop 2024-06-20 16:03:50 +02:00
6 changed files with 64 additions and 17 deletions

View file

@ -11,24 +11,20 @@ in {
config = mkIf cfg.enable {
home.packages = with pkgs; [ vesktop ];
xdg.configFile = {
"vesktop/settings.json".text = builtins.toJSON {
discordBranch = "stable"; # consider "ptb"
firstLaunch = false;
arRPC = "on";
splashColor = "rgb(219, 222, 225)";
splashBackground = "rgb(49, 51, 56)";
checkUpdates = false;
staticTitle = true;
disableMinSize = true;
minimizeToTray = false;
tray = false;
appBadge = false;
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" ];
};
"autostart/vesktop.desktop" = mkIf cfg.autoStart {
source = "${pkgs.vesktop}/share/applications/vesktop.desktop";
Service = {
Type = "simple";
Restart = "on-failure";
ExecStart = "${pkgs.vesktop}/bin/vesktop";
};
Install.WantedBy = [ "graphical-session.target" ];
};
};
}

View file

@ -43,7 +43,7 @@ in {
Unit = {
Description = "Open %I eww (ElKowar's Wacky Widgets) window";
After = [ "eww.service" ];
PartOf = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {

View file

@ -0,0 +1,14 @@
{
lib,
osConfig,
...
}: let
inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.tools.fastfetch;
in {
config = mkIf cfg.enable {
programs.fastfetch.enable = true;
};
}

View file

@ -1,3 +1,31 @@
{
programs.hyfetch.enable = true;
lib,
osConfig,
...
}: let
inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.tools.hyfetch;
in {
config = mkIf cfg.enable {
programs.hyfetch = {
enable = true;
settings = {
preset = "rainbow";
mode = "rgb";
light_dark = "dark";
lightness = 0.65;
color_align = {
mode = "custom";
custom_colors = {};
force_back = null;
};
backend = "neofetch";
args = null;
distro = null;
pride_month_shown = [];
pride_month_disable = true;
};
};
};
}

View file

@ -136,6 +136,10 @@
chromium.enable = true;
mullvad-browser.enable = true;
};
tools = {
fastfetch.enable = true;
hyfetch.enable = true;
};
spotify.enable = true;
stremio.enable = true;
vesktop = {

View file

@ -32,5 +32,10 @@ in
enable = mkEnableOption "Vesktop (An alternate client for Discord with Vencord built-in)";
autoStart = mkEnableOption "Auto-Start for Vesktop";
};
tools = {
fastfetch.enable = mkEnableOption "FastFetch (fast neofetch)";
hyfetch.enable = mkEnableOption "Neofetch with pride flags";
};
};
}