add foot terminal
This commit is contained in:
parent
6caed74075
commit
fcf4605bd9
35
user/subs/foot.nix
Normal file
35
user/subs/foot.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.subs.foot;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
subs.foot.enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.foot = {
|
||||||
|
enable = true;
|
||||||
|
server.enable = true;
|
||||||
|
settings = {
|
||||||
|
main = {
|
||||||
|
include = "${pkgs.foot}/share/foot/themes/dracula";
|
||||||
|
term = "xterm-256color";
|
||||||
|
font = "Iosevka Nerd Font:size=15";
|
||||||
|
dpi-aware = "yes";
|
||||||
|
};
|
||||||
|
bell = {
|
||||||
|
system = "no";
|
||||||
|
};
|
||||||
|
scrollback = {
|
||||||
|
lines = 10000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -8,6 +8,7 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
./subs/ghostty.nix
|
./subs/ghostty.nix
|
||||||
./subs/alacritty.nix
|
./subs/alacritty.nix
|
||||||
|
./subs/foot.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options.terminals = {
|
options.terminals = {
|
||||||
@ -23,11 +24,16 @@ in
|
|||||||
default = true;
|
default = true;
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
};
|
};
|
||||||
|
foot.enable = mkOption {
|
||||||
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
subs.ghostty.enable = cfg.ghostty.enable;
|
subs.ghostty.enable = cfg.ghostty.enable;
|
||||||
subs.alacritty.enable = cfg.alacritty.enable;
|
subs.alacritty.enable = cfg.alacritty.enable;
|
||||||
|
subs.foot.enable = cfg.foot.enable;
|
||||||
|
|
||||||
home.packages = mkIf cfg.xfceTerminal.enable [ pkgs.xfce.xfce4-terminal ];
|
home.packages = mkIf cfg.xfceTerminal.enable [ pkgs.xfce.xfce4-terminal ];
|
||||||
|
|
||||||
|
@ -19,6 +19,10 @@ in
|
|||||||
default = true;
|
default = true;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
mako.enable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -37,5 +41,26 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.mako = {
|
||||||
|
enable = cfg.mako.enable;
|
||||||
|
settings = {
|
||||||
|
sort = "-time";
|
||||||
|
layer = "overlay";
|
||||||
|
background-color = "#1E1E1E";
|
||||||
|
border-color = "#838383";
|
||||||
|
border-size = 1;
|
||||||
|
border-radius = 5;
|
||||||
|
max-icon-size = 64;
|
||||||
|
padding = 10;
|
||||||
|
font = "Inter 10";
|
||||||
|
default-timeout = 5000;
|
||||||
|
"urgency=high" = {
|
||||||
|
background-color = "#EF5350";
|
||||||
|
border-color = "#22DA6E";
|
||||||
|
default-timeout = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user