Add laptop config
This commit is contained in:
parent
5325723d7e
commit
b8e127818a
23 changed files with 32 additions and 9 deletions
48
common/home-manager/shell/alacritty.nix
Normal file
48
common/home-manager/shell/alacritty.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
background_opacity = 0.9;
|
||||
|
||||
# Based on the GNOME Dark theme
|
||||
colors.primary = {
|
||||
foreground = "#d0cfcc";
|
||||
background = "#000000";
|
||||
bright_foreground = "#ffffff";
|
||||
};
|
||||
colors.normal = {
|
||||
black = "#171421";
|
||||
red = "#c01c28";
|
||||
green = "#26a269";
|
||||
yellow = "#a2734c";
|
||||
blue = "#12488b";
|
||||
magenta = "#a347ba";
|
||||
cyan = "#2aa1b3";
|
||||
white = "#d0cfcc";
|
||||
};
|
||||
colors.bright = {
|
||||
black = "#5e5c64";
|
||||
red = "#f66151";
|
||||
green = "#33d17a";
|
||||
yellow = "#e9ad0c";
|
||||
blue = "#2a7bde";
|
||||
magenta = "#c061cb";
|
||||
cyan = "#33c7de";
|
||||
white = "#ffffff";
|
||||
};
|
||||
|
||||
font =
|
||||
let family = "FiraCode Nerd Font Mono";
|
||||
font-style = style: { inherit family style; };
|
||||
in {
|
||||
normal = font-style "Regular";
|
||||
bold = font-style "Bold";
|
||||
italic = font-style "Italic";
|
||||
bold_italic = font-style "Bold Italic";
|
||||
|
||||
size = 11;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
9
common/home-manager/shell/default.nix
Normal file
9
common/home-manager/shell/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./alacritty.nix
|
||||
./starship.nix
|
||||
];
|
||||
|
||||
programs.fish.enable = true;
|
||||
}
|
||||
23
common/home-manager/shell/starship.nix
Normal file
23
common/home-manager/shell/starship.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.starship.enable = true;
|
||||
|
||||
programs.starship.settings = {
|
||||
add_newline = true;
|
||||
|
||||
character =
|
||||
let char = "⮞"; charVi = "⮜";
|
||||
in {
|
||||
success_symbol = "[${char}](bold green)";
|
||||
error_symbol = "[${char}](bold red)";
|
||||
vicmd_symbol = "[${charVi}](bold green)";
|
||||
};
|
||||
|
||||
directory = {
|
||||
truncation_length = 6;
|
||||
truncation_symbol = "⋯ /";
|
||||
read_only = " 🔒";
|
||||
read_only_style = "cyan";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue