update font and bash configuration

This commit is contained in:
Ingolf Wagner 2023-07-02 21:25:49 +02:00
parent 6d78ee1a97
commit fdedda3e06
Signed by: palo
GPG key ID: 76BF5F1928B9618B
5 changed files with 53 additions and 9 deletions

View file

@ -11,8 +11,14 @@ with lib;
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-medium.yaml";
stylix.fonts = {
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
serif = {
package = pkgs.ubuntu_font_family;
name = "Ubuntu";
};
sansSerif = {
package = pkgs.ubuntu_font_family;
name = "Ubuntu";
};
monospace = {
package = pkgs.jetbrains-mono;
name = "JetBrains Mono";

View file

@ -0,0 +1,38 @@
{ pkgs, config, lib, ... }:
with lib;
{
options.components.terminal.bash.enable = mkOption {
type = lib.types.bool;
default = config.components.terminal.enable;
};
config = mkIf (config.components.terminal.bash.enable) {
programs.bash = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
interactiveShellInit = "set -o vi";
shellAliases = {
ls = "ls --color=tty";
l = "ls -CFh";
la = "ls -Ah";
ll = "ls -lh";
lt = "ls -lct --reverse";
less = "less -S";
top = "htop";
version = "date '+%Y%m%d%H%M%S'";
vclip = "xclip -selection clipboard";
df = "df -h";
timestamp = "date +%Y%m%d%H%M%S";
nix-show-garbadge-roots = "ls -lh /nix/var/nix/gcroots/auto/";
};
};
};
}

View file

@ -18,10 +18,10 @@
./programs/curl-scripts.nix
#./programs/easytag.nix
#./programs/elm.nix
./programs/espeak.nix
#./programs/espeak.nix
#./programs/ffmpeg.nix
#./programs/git.nix
./programs/shell-bash.nix
#./programs/shell-bash.nix
#./programs/shell-tools.nix
#./programs/shell-zsh.nix
#./programs/slack.nix

View file

@ -250,7 +250,7 @@ in
users.users = flip mapAttrs cfg.configList
(name: config: {
home = config.home;
createHome = true;
createHome = false;
initialPassword = "${name}-browser";
shell = pkgs.bashInteractive;
isNormalUser = false;

View file

@ -31,10 +31,10 @@
# Shell configuration
# -------------------
programs.custom = {
bash.enable = true;
#zsh.enable = true;
};
#programs.custom = {
# bash.enable = true;
# #zsh.enable = true;
#};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database