nixos/modules/desktop/foot/default.nix

31 lines
753 B
Nix
Raw Normal View History

2024-10-15 18:57:48 +04:00
{ options, config, lib, pkgs, ... }:
let cfg = config.modules.desktop.foot;
2024-08-03 19:55:05 +04:00
in {
2024-10-15 18:57:48 +04:00
options.modules.desktop.foot = { enable = lib.mkEnableOption false; };
2024-08-03 19:55:05 +04:00
config = lib.mkIf cfg.enable {
2024-10-15 18:57:48 +04:00
users.users.sako.packages = with pkgs; [ foot ];
2024-08-03 20:27:30 +04:00
2024-10-15 18:57:48 +04:00
home-manager.users.sako = { pkgs, ... }: {
programs.foot = {
enable = true;
server.enable = false;
settings = {
main = {
term = "xterm-256color";
font = "JetBrainsMono NF:size=12";
};
scrollback = { lines = 1000; };
cursor = {
style = "block";
blink = "yes";
blink-rate = "1000";
};
mouse = { hide-when-typing = "yes"; };
};
2024-08-03 20:27:30 +04:00
};
};
};
2024-08-03 19:55:05 +04:00
}