Skip to content

Commit

Permalink
chore(modules/home): move to foot
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Jun 5, 2024
1 parent 7527e36 commit 0c0d151
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
dev = import ./dev;
firefox = import ./firefox;
fish = import ./fish;
foot = import ./foot;
git = import ./git;
gnome-keyring = import ./gnome-keyring;
gpg = import ./gpg;
Expand Down
37 changes: 37 additions & 0 deletions modules/home/foot/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkIf mkOption types;

cfg = config.sysc.foot;
in {
options.sysc.foot = {
enable = mkOption {
type = types.bool;
default = true;
description = "Whether to use foot.";
};

defaultTerminal = mkOption {
type = types.bool;
default = true;
description = "Whether to use foot as the default terminal.";
};
};

config = mkIf cfg.enable {
programs.foot = {
enable = true;
settings = {
main = {
pad = "10x0";
};
};
};

home.sessionVariables.TERMINAL = mkIf cfg.defaultTerminal (lib.getExe pkgs.foot);
};
}
2 changes: 1 addition & 1 deletion modules/home/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ in {
"$mod, Q, killactive,"
"$mod SHIFT, Q, exit,"

"$mod, Return, exec, ${getExe pkgs.kitty}"
"$mod, Return, exec, ${getExe pkgs.foot}"
"$mod, SPACE, exec, ${getExe pkgs.wofi} -S drun"

"$mod SHIFT, SPACE, togglefloating,"
Expand Down
2 changes: 1 addition & 1 deletion modules/home/kitty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ in {

defaultTerminal = mkOption {
type = types.bool;
default = true;
default = false;
description = "Whether to use kitty as the default terminal.";
};
};
Expand Down

0 comments on commit 0c0d151

Please sign in to comment.