nixos-config/users/rouven/modules/foot/default.nix

82 lines
2.1 KiB
Nix
Raw Permalink Normal View History

2023-06-19 13:22:15 +02:00
{ config, pkgs, lib, ... }:
2023-02-11 12:58:28 +01:00
{
home.packages = with pkgs; [
libsixel
];
2023-11-25 23:20:52 +01:00
# enable socket activation
systemd.user = {
services.foot = {
Unit = {
Requires = "foot.socket";
};
};
sockets.foot = {
Socket = {
ListenStream = "%t/foot.sock";
};
Unit = {
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
ConditionEnvironment = "WAYLAND_DISPLAY";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
2023-02-11 12:58:28 +01:00
programs.foot = {
enable = true;
server.enable = true;
package = pkgs.foot.overrideAttrs (old: {
# don't install systemd units
mesonFlags = old.mesonFlags ++ [
"-Dsystemd-units-dir=''"
];
});
2023-02-11 12:58:28 +01:00
settings = rec {
main = {
shell = "${pkgs.zsh}/bin/zsh";
2023-11-25 23:20:52 +01:00
# dpi-aware = "yes";
font = "monospace:family=Iosevka Nerd Font:size=12";
2023-02-11 12:58:28 +01:00
};
2024-09-26 17:48:36 +02:00
desktop-notifications.command = "${lib.getExe pkgs.libnotify} -a \${app-id} -i \${app-id} \${title} \${body}";
2023-02-11 12:58:28 +01:00
cursor.color = "${colors.background} ${colors.foreground}";
2023-06-19 23:58:04 +02:00
url = {
launch = "${pkgs.xdg-utils}/bin/xdg-open \${url}";
};
2023-03-04 19:56:45 +01:00
bell = {
urgent = true;
notify = true;
};
2023-02-12 14:56:42 +01:00
colors =
let
colors = config.colorScheme.palette;
2023-02-12 14:56:42 +01:00
in
{
2023-06-06 12:59:29 +02:00
# alpha = if (config.colorScheme.kind == "dark") then 0.0 else 1.0;
2023-02-12 14:56:42 +01:00
background = colors.base00;
foreground = colors.base05;
regular0 = colors.base02;
regular1 = colors.base08;
regular2 = colors.base0A;
regular3 = colors.base0B;
regular4 = colors.base0D;
regular5 = colors.base0E;
regular6 = colors.base0C;
regular7 = colors.base05;
bright0 = colors.base03;
bright1 = colors.base08;
bright2 = colors.base0A;
bright3 = colors.base0B;
bright4 = colors.base0D;
bright5 = colors.base0E;
bright6 = colors.base0C;
bright7 = colors.base07;
};
2023-02-11 12:58:28 +01:00
};
};
}