Configure terminal

This commit is contained in:
Riley Apeldoorn 2023-05-21 22:45:36 +00:00
parent b4aee45e39
commit fdc1d55761
7 changed files with 39 additions and 13 deletions

View file

@ -11,17 +11,16 @@
config = {
users.users."riley" = {
shell = pkgs.fish;
shell = pkgs.bash;
isNormalUser = true;
extraGroups = ["wheel"];
packages = [ pkgs.helix ];
packages = [ pkgs.kakoune ];
};
environment.systemPackages = (import ../env.nix pkgs);
programs.fish.enable = true;
services.earlyoom.enable = true;
};

View file

@ -1,12 +1,13 @@
# Configuration of the shell.
# TODO: switch to a shell from this century
{ pkgs, lib, config, ... }:
let cfg = config.custom.fish;
let cfg = config.custom.bash;
in with lib; {
options.custom.fish = with types; {
options.custom.bash = with types; {
extraAliases = mkOption {
default = {};
};
@ -15,7 +16,7 @@ in with lib; {
config = {
# Configure the shell itself
programs.fish = {
programs.bash = {
enable = true;
shellAliases = {} // cfg.extraAliases;
};

View file

@ -3,7 +3,7 @@
{
imports = [
./fish.nix
./bash.nix
./git.nix
./nix.nix
./programs.nix

View file

@ -1,4 +1,4 @@
{ ... }:
{ pkgs, ... }:
{
@ -7,4 +7,10 @@
./term.nix
];
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
fira-code
];
}

View file

@ -18,7 +18,10 @@ in with lib; {
extraSessionCommands = "export WLR_NO_HARDWARE_CURSORS=1";
extraOptions = [ "--unsupported-gpu" ];
config.output."*".bg = "${../../data/wallpaper.jpg} fill";
config = {
output."*".bg = "${../../data/wallpaper.jpg} fill";
terminal = "${pkgs.kitty}/bin/kitty";
};
};
};

View file

@ -1,5 +1,22 @@
{ ... }:
{ pkgs, config, ... }:
let theme = config.theme; in {
programs.kitty = {
enable = true;
settings = {
term = "xterm";
enable_audio_bell = false;
scrollback_lines = 5000000;
background = "#${theme.background.basic}";
};
font = {
name = "Fira Code";
package = pkgs.fira-code;
size = 8.5;
};
};
{
programs.kitty.enable = true;
}

View file

@ -14,7 +14,7 @@ let theme = config.theme; in {
font = {
name = "Fira Code";
package = pkgs.fira-code;
size = 8;
};
};