ADD starship

ADD i3status
This commit is contained in:
Alexandre LUCAZEAU 2022-01-21 10:35:52 +01:00
parent fffd269827
commit 8d2ef253d1
4 changed files with 70 additions and 0 deletions

View File

@ -5,6 +5,8 @@
./git.nix
./variables.nix
./starship.nix
./i3status.nix
./emacs.nix
#./mails.nix
];
home.keyboard = {

51
nixpkgs/i3status.nix Normal file
View File

@ -0,0 +1,51 @@
{ config, pkgs, ... }:{
programs.i3status-rust = {
enable = true;
bars = {
bottom = {
blocks = [
{
block = "disk_space";
path = "/";
alias = "/";
info_type = "available";
unit = "GB";
interval = 60;
warning = 20.0;
alert = 10.0;
}
{
block = "memory";
display_type = "memory";
format_mem = "{mem_used_percents}";
format_swap = "{swap_used_percents}";
}
{
block = "cpu";
interval = 1;
}
{
block = "load";
interval = 1;
format = "{1m}";
}
{ block = "sound"; }
{
block = "backlight";
}
{
block = "battery";
}
{
block = "time";
interval = 60;
format = "%a %d/%m %R";
}
];
icons = "material-nf";
theme = "nord-dark";
};
};
};
}

View File

@ -1,4 +1,5 @@
{ pkgs, ... }: {
programs.go.enable = true;
home.packages = with pkgs; [
thunderbird
vim
@ -28,5 +29,11 @@
pandoc
hugo
whois
barrier
inkscape
feh
i3blocks
acpi
cpufrequtils
];
}

View File

@ -18,3 +18,13 @@
};
};
}
## environment.variables = let
## starshipConfToml =
## pkgs.writeText "starship.toml" ''
## [[battery.display]]
## threshold = 50
## '';
## in {
## EDITOR = "nvim";
## STARSHIP_CONFIG = "${starshipConfToml}";
## };