many changes this one forgot
This commit is contained in:
parent
67c2117563
commit
44307a3f6f
22 changed files with 1081 additions and 437 deletions
39
modules/desktop/foot.nix
Normal file
39
modules/desktop/foot.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.xyno.desktop.foot;
|
||||
in
|
||||
{
|
||||
options.xyno.desktop.foot.enable = lib.mkEnableOption "enable foot terminal emulator";
|
||||
options.xyno.desktop.foot.wantedBy = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "niri.service";
|
||||
};
|
||||
options.xyno.desktop.foot.package= lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.foot;
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
# should be socket activated tm
|
||||
# systemd.user.services.foot.wantedBy = lib.mkForce [ cfg.wantedBy ];
|
||||
# systemd.user.sockets.foot.wantedBy = lib.mkForce [ cfg.wantedBy ];
|
||||
systemd.packages = [ cfg.package ];
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
package = cfg.package;
|
||||
theme = "gruvbox-dark";
|
||||
settings = {
|
||||
main = {
|
||||
font = "JetBrainsMono Nerd Font:size=11";
|
||||
};
|
||||
scrollback = {
|
||||
lines = 100000;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue