Update fastfetch.nix
This commit is contained in:
parent
54db358ae6
commit
410f27607e
1 changed files with 3 additions and 65 deletions
|
|
@ -1,18 +1,15 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Install fastfetch
|
# Install fastfetch, ghostty, and nerd fonts
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
fastfetch
|
fastfetch
|
||||||
];
|
];
|
||||||
|
|
||||||
# Install Nerd Fonts for icon support
|
# Install Nerd Fonts for icon support
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
nerd-fonts.fira-code
|
nerd-fonts.fira-code
|
||||||
nerd-fonts.jetbrains-mono
|
nerd-fonts.jetbrains-mono
|
||||||
nerd-fonts.meslo-lg
|
nerd-fonts.meslo-lg
|
||||||
];
|
];
|
||||||
|
|
||||||
# Create the fastfetch config file with custom image
|
# Create the fastfetch config file with custom image
|
||||||
environment.etc."fastfetch/config.jsonc".text = ''
|
environment.etc."fastfetch/config.jsonc".text = ''
|
||||||
{
|
{
|
||||||
|
|
@ -32,74 +29,16 @@
|
||||||
},
|
},
|
||||||
"modules": [
|
"modules": [
|
||||||
{
|
{
|
||||||
"type": "title",
|
"type": "custom",
|
||||||
"format": "{host-name-colored}"
|
"format": "{#blue}{user-name}{#reset}{#cyan}@{#reset}{#blue}{host-name}{#reset} {#green}{kernel}{#reset}"
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "separator",
|
|
||||||
"string": "─────────────────────────────────"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "os",
|
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "host",
|
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "kernel",
|
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "uptime",
|
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "de",
|
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "wm",
|
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "wmtheme",
|
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "icons",
|
|
||||||
"keyColor": "blue"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "cpu",
|
|
||||||
"keyColor": "green"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "gpu",
|
|
||||||
"keyColor": "green"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "memory",
|
|
||||||
"keyColor": "yellow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "disk",
|
|
||||||
"keyColor": "yellow"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "separator",
|
|
||||||
"string": "─────────────────────────────────"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "colors",
|
"type": "colors",
|
||||||
"paddingLeft": 2,
|
|
||||||
"symbol": "circle"
|
"symbol": "circle"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Set up bash with fastfetch and a nice prompt
|
# Set up bash with fastfetch and a nice prompt
|
||||||
programs.bash.promptInit = ''
|
programs.bash.promptInit = ''
|
||||||
# Stylish prompt with icons
|
# Stylish prompt with icons
|
||||||
|
|
@ -123,7 +62,6 @@
|
||||||
# Set the prompt
|
# Set the prompt
|
||||||
PS1="''${RESET}''${BCYAN}╭─''${RESET} ''${BPURPLE}\u''${RESET}''${CYAN}@''${RESET}''${BBLUE}\h''${RESET} ''${BGREEN} \w''${RESET}''${YELLOW}\$(parse_git_branch)''${RESET}\n''${BCYAN}╰─''${BPURPLE}❯''${RESET} "
|
PS1="''${RESET}''${BCYAN}╭─''${RESET} ''${BPURPLE}\u''${RESET}''${CYAN}@''${RESET}''${BBLUE}\h''${RESET} ''${BGREEN} \w''${RESET}''${YELLOW}\$(parse_git_branch)''${RESET}\n''${BCYAN}╰─''${BPURPLE}❯''${RESET} "
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.bash.interactiveShellInit = ''
|
programs.bash.interactiveShellInit = ''
|
||||||
# Run fastfetch on terminal start
|
# Run fastfetch on terminal start
|
||||||
if [[ $- == *i* ]]; then
|
if [[ $- == *i* ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue