mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 01:38:28 +02:00
fix: starship with bash, vscode
This commit is contained in:
@@ -118,7 +118,7 @@
|
|||||||
// waybar-cpu
|
// waybar-cpu
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format": " LOAD: {usage}%",
|
"format": " LOAD: {usage}%",
|
||||||
},
|
},
|
||||||
// waybar-custom
|
// waybar-custom
|
||||||
"custom/menu": {
|
"custom/menu": {
|
||||||
|
|||||||
@@ -3,23 +3,25 @@
|
|||||||
nixpkgs-stable,
|
nixpkgs-stable,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
home.packages =
|
pkgs-stable = import nixpkgs-stable {
|
||||||
let
|
system = pkgs.system;
|
||||||
pkgs-stable = import nixpkgs-stable {
|
config.allowUnfree = true;
|
||||||
system = pkgs.system;
|
};
|
||||||
config.allowUnfree = true;
|
in {
|
||||||
};
|
home.packages = with pkgs-stable; [
|
||||||
in
|
firefox-wayland
|
||||||
with pkgs-stable; [
|
|
||||||
firefox-wayland
|
|
||||||
|
|
||||||
# chrome wayland support was broken on nixos-unstable branch, so fallback to stable branch for now
|
# chrome wayland support was broken on nixos-unstable branch, so fallback to stable branch for now
|
||||||
# https://github.com/swaywm/sway/issues/7562
|
# https://github.com/swaywm/sway/issues/7562
|
||||||
google-chrome
|
google-chrome
|
||||||
vscode
|
];
|
||||||
];
|
|
||||||
|
|
||||||
# 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 = {};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,8 +116,10 @@
|
|||||||
exa.enable = true; # A modern replacement for ‘ls’
|
exa.enable = true; # A modern replacement for ‘ls’
|
||||||
jq.enable = true; # A lightweight and flexible command-line JSON processor
|
jq.enable = true; # A lightweight and flexible command-line JSON processor
|
||||||
ssh.enable = true;
|
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 = {
|
skim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ in {
|
|||||||
./terminals.nix
|
./terminals.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
};
|
||||||
|
|
||||||
# add environment variables
|
# add environment variables
|
||||||
# 注意不要用 home.sessionVariables 或 home.xxx.sessionVariables,这俩参数没用
|
# 注意不要用 home.sessionVariables 或 home.xxx.sessionVariables,这俩参数没用
|
||||||
systemd.user.sessionVariables = {
|
systemd.user.sessionVariables = {
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
{config, ...}: {
|
{config, ...}: {
|
||||||
systemd.user.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
|
|
||||||
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
Reference in New Issue
Block a user