autostart some programs

This commit is contained in:
Leonardo Eugênio 2022-07-20 20:07:58 -03:00
parent 20ef97bddc
commit 64e13f5bc9

View file

@ -1,5 +1,5 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let let
key = { key = {
left = "n"; left = "n";
down = "e"; down = "e";
@ -56,7 +56,7 @@ let
orchis_theme_compact = (pkgs.orchis-theme.override { tweaks = [ "compact" "solid" ]; }); orchis_theme_compact = (pkgs.orchis-theme.override { tweaks = [ "compact" "solid" ]; });
accent = accents.red; accent = accents.red;
color = themes.dark.color; color = themes.dark.color;
in { in {
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
# paths it should manage. # paths it should manage.
home.username = "lelgenio"; home.username = "lelgenio";
@ -83,12 +83,19 @@ in {
alacritty alacritty
exa exa
fd fd
sd
ripgrep ripgrep
yt-dlp yt-dlp
ffmpeg ffmpeg
imagemagick imagemagick
mpv mpv
xfce.thunar xfce.thunar
# chat
tdesktop
discord
# Theming
liberation_ttf liberation_ttf
hack-font hack-font
font-awesome_5 font-awesome_5
@ -96,6 +103,12 @@ in {
(nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; }) (nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; })
orchis_theme_compact orchis_theme_compact
papirus_red papirus_red
# Programming
vscode
cargo
rust-analyzer
gcc
]; ];
programs.fish.enable = true; programs.fish.enable = true;
programs.helix = { programs.helix = {
@ -485,6 +498,7 @@ in {
}; };
in { in {
"${mod}+Return" = "exec ${terminal}"; "${mod}+Return" = "exec ${terminal}";
"${mod}+Ctrl+Return" = "exec thunar";
"${mod}+x" = "kill"; "${mod}+x" = "kill";
"${mod}+s" = "exec ${menu}"; "${mod}+s" = "exec ${menu}";
"${mod}+b" = "splith"; "${mod}+b" = "splith";
@ -568,5 +582,46 @@ in {
style.package = pkgs.libsForQt5.qtstyleplugins; style.package = pkgs.libsForQt5.qtstyleplugins;
style.name = "gtk2"; style.name = "gtk2";
}; };
programs.mangohud.enable = true; programs.mangohud.enable = true;
systemd.user.services = {
firefox = {
Unit = {
Description = "Firefox Web browser";
Documentation = "https://github.com/Alexays/Waybar/wiki";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.discord}/bin/discord";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
discord = {
Unit = {
Description = "Discord Internet voice chat";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.discord}/bin/discord";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
telegram = {
Unit = {
Description = "Telegram Internet chat";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
};
} }