modifié : configs/i3config

modifié :         home.nix
	modifié :         packages.nix
	modifié :         starship.nix
	modifié :         ../nixos/configuration.nix
This commit is contained in:
Alexandre LUCAZEAU 2023-07-23 18:05:54 +02:00
parent 9219c624e6
commit 9bb93507cc
5 changed files with 74 additions and 6 deletions

View File

@ -18,7 +18,7 @@ client.focused_inactive $gray2 $gray2 #FFFFFF #000000
client.unfocused $gray2 $gray2 #FFFFFF #000000 client.unfocused $gray2 $gray2 #FFFFFF #000000
# Police de caracteres pour les titres des fenetres. ISO 10646 = Unicode # Police de caracteres pour les titres des fenetres. ISO 10646 = Unicode
font pango:Hack 10 font pango:iosevka 10
# wallpaper # wallpaper
exec --no-startup-id feh --bg-scale /home/alexandre/images/SF.jpg exec --no-startup-id feh --bg-scale /home/alexandre/images/SF.jpg

View File

@ -6,11 +6,11 @@
./variables.nix ./variables.nix
./starship.nix ./starship.nix
./i3status.nix ./i3status.nix
./dunst.nix
./himalaya.nix ./himalaya.nix
../../../modules/tmux.nix ../../../modules/tmux.nix
../../../modules/emacs.nix ../../../modules/emacs.nix
../../../modules/neovim.nix ../../../modules/neovim.nix
../../../modules/kdeconnect.nix
]; ];
home.stateVersion = "23.05"; home.stateVersion = "23.05";
home.username = "alexandre"; home.username = "alexandre";

View File

@ -1,6 +1,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
home.packages = with pkgs; [ home.packages = with pkgs; [
home-manager home-manager
spaceFM
jq jq
nextcloud-client nextcloud-client
libreoffice libreoffice
@ -35,5 +36,8 @@
guake guake
graphviz graphviz
kdeconnect kdeconnect
openssl
openvpn
feh
]; ];
} }

View File

@ -1,11 +1,72 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
programs.starship = { programs.starship = {
enable = true;
enableFishIntegration = true; enableFishIntegration = true;
enable = true;
# Configuration écrite dans ~/.config/starship.toml # Configuration écrite dans ~/.config/starship.toml
settings = {
add_newline = false;
format = "$shlvl$shell$username$hostname$nix_shell$git_branch$git_commit$git_state$git_status$directory$jobs$cmd_duration$character";
shlvl = {
disabled = false;
symbol = "";
style = "bright-red bold";
};
shell = {
disabled = false;
format = "$indicator";
fish_indicator = "";
bash_indicator = "[BASH](bright-white) ";
zsh_indicator = "[ZSH](bright-white) ";
};
username = {
style_user = "bright-white bold";
style_root = "bright-red bold";
};
hostname = {
style = "bright-green bold";
ssh_only = true;
};
nix_shell = {
symbol = "";
format = "[$symbol$name]($style) ";
style = "bright-purple bold";
};
git_branch = {
only_attached = true;
format = "[$symbol$branch]($style) ";
symbol = "";
style = "bright-yellow bold";
};
git_commit = {
only_detached = true;
format = "[$hash]($style) ";
style = "bright-yellow bold";
};
git_state = {
style = "bright-purple bold";
};
git_status = {
style = "bright-green bold";
};
directory = {
read_only = " ";
truncation_length = 0;
};
cmd_duration = {
format = "[$duration]($style) ";
style = "bright-blue";
};
jobs = {
style = "bright-green bold";
};
character = {
success_symbol = "[\\$](bright-green bold)";
error_symbol = "[\\$](bright-red bold)";
};
}; };
xdg.configFile = {
"starship.toml" .source = ./configs/starship.toml;
}; };
#xdg.configFile = {
#"starship.toml" .source = ./configs/starship.toml;
#};
} }

View File

@ -13,7 +13,7 @@
./network.nix ./network.nix
modules/common.nix modules/common.nix
modules/smtp.nix modules/smtp.nix
modules/powermanagement.nix # modules/powermanagement.nix
]; ];
@ -84,6 +84,7 @@
setXAuthLocation = true; setXAuthLocation = true;
forwardX11 = true; forwardX11 = true;
}; };
dconf.enable=true;
}; };
# Enable sound. # Enable sound.
sound.enable = true; sound.enable = true;
@ -103,6 +104,8 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
google-fonts google-fonts
gnome.adwaita-icon-theme
networkmanagerapplet
]; ];
environment.variables.EDITOR = "nvim"; environment.variables.EDITOR = "nvim";