From 8d2ef253d1f80c05f129b7480b771ebbbb138d18 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Fri, 21 Jan 2022 10:35:52 +0100 Subject: [PATCH] ADD starship ADD i3status --- nixpkgs/home.nix | 2 ++ nixpkgs/i3status.nix | 51 ++++++++++++++++++++++++++++++++++++++++++++ nixpkgs/packages.nix | 7 ++++++ nixpkgs/starship.nix | 10 +++++++++ 4 files changed, 70 insertions(+) create mode 100644 nixpkgs/i3status.nix diff --git a/nixpkgs/home.nix b/nixpkgs/home.nix index 2f5e858..8fd1fb1 100644 --- a/nixpkgs/home.nix +++ b/nixpkgs/home.nix @@ -5,6 +5,8 @@ ./git.nix ./variables.nix ./starship.nix + ./i3status.nix + ./emacs.nix #./mails.nix ]; home.keyboard = { diff --git a/nixpkgs/i3status.nix b/nixpkgs/i3status.nix new file mode 100644 index 0000000..5abb845 --- /dev/null +++ b/nixpkgs/i3status.nix @@ -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"; + }; + }; + }; +} diff --git a/nixpkgs/packages.nix b/nixpkgs/packages.nix index 6113b7c..168c654 100644 --- a/nixpkgs/packages.nix +++ b/nixpkgs/packages.nix @@ -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 ]; } diff --git a/nixpkgs/starship.nix b/nixpkgs/starship.nix index 657c655..547c2f7 100644 --- a/nixpkgs/starship.nix +++ b/nixpkgs/starship.nix @@ -18,3 +18,13 @@ }; }; } +## environment.variables = let +## starshipConfToml = +## pkgs.writeText "starship.toml" '' +## [[battery.display]] +## threshold = 50 +## ''; +## in { +## EDITOR = "nvim"; +## STARSHIP_CONFIG = "${starshipConfToml}"; +## };