2022-05-09 16:42:19 +02:00
|
|
|
# Shared home configuration for all machines.
|
|
|
|
|
|
|
|
{ depot, pkgs, ... }: # readTree
|
|
|
|
{ config, lib, ... }: # home-manager
|
|
|
|
|
2023-06-30 17:24:43 +02:00
|
|
|
|
|
|
|
let
|
2024-09-07 00:24:57 +02:00
|
|
|
inherit (depot.third_party) chicago95;
|
|
|
|
|
2023-06-30 17:24:43 +02:00
|
|
|
# URL handler to open `tg://` URLs in telega.el
|
|
|
|
telega-launcher = pkgs.writeShellScriptBin "telega-launcher" ''
|
|
|
|
echo "Opening ''${1} in telega.el ..."
|
2024-03-31 23:40:36 +02:00
|
|
|
${depot.users.tazjin.emacs.emacs}/bin/emacsclient -e "(telega-browse-url \"''${1}\")"
|
2023-06-30 17:24:43 +02:00
|
|
|
'';
|
|
|
|
in
|
2022-05-09 16:42:19 +02:00
|
|
|
{
|
|
|
|
home.activation.screenshots = lib.hm.dag.entryAnywhere ''
|
|
|
|
$DRY_RUN_CMD mkdir -p $HOME/screenshots
|
|
|
|
'';
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Vincent Ambo";
|
|
|
|
userEmail = "mail@tazj.in";
|
|
|
|
extraConfig = {
|
|
|
|
pull.rebase = true;
|
|
|
|
init.defaultBranch = "canon";
|
2022-05-10 17:24:58 +02:00
|
|
|
safe.directory = [ "/depot" ];
|
2022-05-09 16:42:19 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
|
|
|
interactiveShellInit = ''
|
2024-03-20 16:21:39 +01:00
|
|
|
# emacs vterm integration
|
|
|
|
source (find '${pkgs.emacsPackages.vterm}' -name 'emacs-vterm.fish')
|
|
|
|
|
|
|
|
# z
|
2022-05-09 16:42:19 +02:00
|
|
|
${pkgs.zoxide}/bin/zoxide init fish | source
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-06-30 17:24:43 +02:00
|
|
|
home.packages = [ telega-launcher ];
|
|
|
|
|
|
|
|
xdg.desktopEntries.telega-launcher = {
|
|
|
|
name = "Telega Launcher";
|
|
|
|
exec = "${telega-launcher}/bin/telega-launcher";
|
|
|
|
terminal = false;
|
|
|
|
mimeType = [ "x-scheme-handler/tg" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.mimeApps = {
|
|
|
|
enable = true;
|
|
|
|
defaultApplications = {
|
|
|
|
"x-scheme-handler/tg" = [ "telega-launcher.desktop" ];
|
2024-01-17 16:24:54 +01:00
|
|
|
"text/html" = [ "firefox.desktop" ];
|
|
|
|
"x-scheme-handler/http" = [ "firefox.desktop" ];
|
|
|
|
"x-scheme-handler/https" = [ "firefox.desktop" ];
|
|
|
|
"x-scheme-handler/about" = [ "firefox.desktop" ];
|
|
|
|
"x-scheme-handler/unknown" = [ "firefox.desktop" ];
|
2023-06-30 17:24:43 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-09-01 01:11:08 +02:00
|
|
|
programs.wpaperd = {
|
2022-05-09 16:42:19 +02:00
|
|
|
enable = true;
|
2024-09-01 01:11:08 +02:00
|
|
|
settings = {
|
|
|
|
default = {
|
|
|
|
duration = "1d";
|
|
|
|
mode = "center";
|
|
|
|
sorting = "random";
|
|
|
|
};
|
2022-05-09 16:42:19 +02:00
|
|
|
|
2024-09-01 01:11:08 +02:00
|
|
|
any.path = ../wallpapers;
|
|
|
|
};
|
|
|
|
};
|
2022-07-14 15:37:34 +02:00
|
|
|
|
2024-09-07 13:39:40 +02:00
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
|
|
|
settings = depot.users.tazjin.dotfiles.waybar.config;
|
|
|
|
style = depot.users.tazjin.dotfiles.waybar.style;
|
|
|
|
systemd.enable = true;
|
|
|
|
};
|
|
|
|
systemd.user.services.waybar.Unit.After = lib.mkForce [ "niri.service" ];
|
|
|
|
|
|
|
|
|
2024-09-02 00:11:20 +02:00
|
|
|
services.swayidle = let cmd = "${pkgs.swaylock}/bin/swaylock -fFkl -c 008080"; in {
|
|
|
|
enable = true;
|
|
|
|
events = [
|
|
|
|
{ event = "before-sleep"; command = cmd; }
|
|
|
|
{ event = "lock"; command = cmd; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-05-09 16:42:19 +02:00
|
|
|
# Enable the dunst notification daemon, but force the
|
|
|
|
# configuration file separately instead of going via the strange
|
|
|
|
# Nix->dunstrc encoding route.
|
|
|
|
services.dunst.enable = true;
|
|
|
|
xdg.configFile."dunst/dunstrc" = {
|
|
|
|
source = depot.users.tazjin.dotfiles.dunstrc;
|
|
|
|
onChange = ''
|
|
|
|
${pkgs.procps}/bin/pkill -u "$USER" ''${VERBOSE+-e} dunst || true
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-09-07 00:24:57 +02:00
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
theme.name = "Chicago95";
|
|
|
|
theme.package = chicago95;
|
|
|
|
|
|
|
|
iconTheme.name = "Chicago95-tux";
|
|
|
|
iconTheme.package = chicago95;
|
|
|
|
|
2024-09-07 13:50:02 +02:00
|
|
|
cursorTheme.name = lib.mkDefault "Chicago95_Animated_Hourglass_Cursors";
|
2024-09-07 00:24:57 +02:00
|
|
|
cursorTheme.package = chicago95;
|
|
|
|
};
|
|
|
|
|
2022-05-09 16:42:19 +02:00
|
|
|
systemd.user.startServices = true;
|
2022-10-26 15:39:00 +02:00
|
|
|
|
|
|
|
# Previous default version, see https://github.com/nix-community/home-manager/blob/master/docs/release-notes/rl-2211.adoc
|
|
|
|
home.stateVersion = "18.09";
|
2022-05-09 16:42:19 +02:00
|
|
|
}
|