fix: starship with bash, vscode

This commit is contained in:
ryan4yin
2023-05-07 16:46:59 +08:00
parent 82f0248cf6
commit ed7ebb0802
5 changed files with 28 additions and 21 deletions

View File

@@ -118,7 +118,7 @@
// waybar-cpu
"cpu": {
"interval": 5,
"format": " LOAD: {usage}%",
"format": " LOAD: {usage}%",
},
// waybar-custom
"custom/menu": {

View File

@@ -3,23 +3,25 @@
nixpkgs-stable,
config,
...
}: {
home.packages =
let
pkgs-stable = import nixpkgs-stable {
system = pkgs.system;
config.allowUnfree = true;
};
in
with pkgs-stable; [
firefox-wayland
}: let
pkgs-stable = import nixpkgs-stable {
system = pkgs.system;
config.allowUnfree = true;
};
in {
home.packages = with pkgs-stable; [
firefox-wayland
# chrome wayland support was broken on nixos-unstable branch, so fallback to stable branch for now
# https://github.com/swaywm/sway/issues/7562
google-chrome
vscode
];
# chrome wayland support was broken on nixos-unstable branch, so fallback to stable branch for now
# https://github.com/swaywm/sway/issues/7562
google-chrome
];
# programs = {
# };
programs.vscode = {
enable = true;
package = pkgs-stable.vscode; # use the stable version
# let vscode sync and update its configuration & extensions across devices, using github account.
# userSettings = {};
};
}

View File

@@ -116,8 +116,10 @@
exa.enable = true; # A modern replacement for ls
jq.enable = true; # A lightweight and flexible command-line JSON processor
ssh.enable = true;
aria2.enable = true;
aria2.enable = true; # a
# skim provides a single executable: sk.
# Basically anywhere you would want to use grep, try sk instead.
skim = {
enable = true;
enableZshIntegration = true;

View File

@@ -10,6 +10,11 @@ in {
./terminals.nix
];
programs.bash = {
enable = true;
enableCompletion = true;
};
# add environment variables
# 注意不要用 home.sessionVariables 或 home.xxx.sessionVariables这俩参数没用
systemd.user.sessionVariables = {

View File

@@ -1,6 +1,4 @@
{config, ...}: {
systemd.user.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
programs.starship = {
enable = true;
settings = {