Compare commits

..

No commits in common. "58f5120af9fc51dab276b880af48b4dd1468babd" and "fdc3dfb1e6ac88c2133559c1fbca23243d351564" have entirely different histories.

4 changed files with 47 additions and 31 deletions

View file

@ -61,19 +61,20 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ],
"utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1685599623, "lastModified": 1681092193,
"narHash": "sha256-Tob4CMOVHue0D3RzguDBCtUmX5ji2PsdbQDbIOIKvsc=", "narHash": "sha256-JerCqqOqbT2tBnXQW4EqwFl0hHnuZp21rIQ6lu/N4rI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "93db05480c0c0f30382d3e80779e8386dcb4f9dd", "rev": "f9edbedaf015013eb35f8caacbe0c9666bbc16af",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-23.05", "ref": "release-22.11",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -128,16 +129,16 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1685533922, "lastModified": 1684661732,
"narHash": "sha256-y4FCQpYafMQ42l1V+NUrMel9RtFtZo59PzdzflKR/lo=", "narHash": "sha256-2/Xo/UmUUoMXc0T5tzoUsYjMLLMjEfzRWDAQB0WwtW0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3a70dd92993182f8e514700ccf5b1ae9fc8a3b8d", "rev": "b0671cbf1e5c443f7fbfd4941ee0f8a151435114",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-23.05", "ref": "nixos-22.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -151,6 +152,21 @@
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable-small": "nixpkgs-unstable-small" "nixpkgs-unstable-small": "nixpkgs-unstable-small"
} }
},
"utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -5,7 +5,7 @@
type = "github"; type = "github";
owner = "NixOS"; owner = "NixOS";
repo = "nixpkgs"; repo = "nixpkgs";
ref = "nixos-23.05"; ref = "nixos-22.11";
}; };
nixpkgs-unstable-small = { nixpkgs-unstable-small = {
@ -25,7 +25,7 @@
type = "github"; type = "github";
owner = "nix-community"; owner = "nix-community";
repo = "home-manager"; repo = "home-manager";
ref = "release-23.05"; ref = "release-22.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };

View file

@ -47,7 +47,7 @@ in {
config.xdg.configFile."i3status-rust/config-top.toml".target; config.xdg.configFile."i3status-rust/config-top.toml".target;
in [ in [
{ {
statusCommand = "i3status-rs ~/${barConfigPath}"; statusCommand = "i3status-rs ${barConfigPath}";
position = "top"; position = "top";
fonts = { fonts = {
names = ["DejaVuSansMono" "FontAwesome6Free"]; names = ["DejaVuSansMono" "FontAwesome6Free"];

View file

@ -52,42 +52,46 @@ in {
bars = { bars = {
top = { top = {
icons = "awesome5"; icons = "awesome5";
settings.theme = {
theme = i3BarTheme.theme.name; theme = i3BarTheme.theme.name;
overrides = i3BarTheme.theme.overrides; settings = i3BarTheme;
};
blocks = blocks =
[ [
{ {
block = "pomodoro"; block = "pomodoro";
notify_cmd = "i3nag"; length = 50;
blocking_cmd = true; break_length = 10;
notifier = "i3nag";
} }
{ {
block = "disk_space"; block = "disk_space";
path = "/"; path = "/";
alias = "/";
info_type = "available"; info_type = "available";
unit = "GB";
interval = 60; interval = 60;
warning = 20.0; warning = 20.0;
alert = 10.0; alert = 10.0;
alert_unit = "GB";
} }
{ {
block = "memory"; block = "memory";
format = " $icon $mem_used.eng(prefix:G)/$mem_total.eng(prefix:G) "; display_type = "memory";
format_mem = "{mem_used;G}/{mem_total;G}";
warning_mem = 70.0; warning_mem = 70.0;
critical_mem = 90.0; critical_mem = 90.0;
# don't show swap
clickable = false;
} }
{ {
block = "cpu"; block = "cpu";
interval = 1; interval = 1;
format = " $icon $barchart "; format = "{barchart}";
} }
{ {
block = "temperature"; block = "temperature";
collapsed = false;
interval = 10; interval = 10;
format = " $icon $max "; format = "{max}";
chip = cfg.temperature.chip; chip = cfg.temperature.chip;
inputs = cfg.temperature.inputs; inputs = cfg.temperature.inputs;
} }
@ -99,18 +103,14 @@ in {
block = "net"; block = "net";
device = interface; device = interface;
interval = 1; interval = 1;
missing_format = ""; hide_inactive = true;
}) })
cfg.networking.throughput_interfaces) cfg.networking.throughput_interfaces)
) )
++ [ ++ [
{ {
block = "net"; block = "networkmanager";
format = " $icon $ip {SSID: $ssid|}"; primary_only = true;
theme_overrides = {
idle_bg = { link = "good_bg"; };
idle_fg = { link = "good_fg"; };
};
} }
{ {
block = "sound"; block = "sound";
@ -121,7 +121,6 @@ in {
optional config.my.home.laptop.enable optional config.my.home.laptop.enable
{ {
block = "battery"; block = "battery";
format = " $icon $percentage ($power) ";
} }
) )
++ [ ++ [
@ -131,7 +130,8 @@ in {
{ {
block = "time"; block = "time";
interval = 5; interval = 5;
format = " $icon $timestamp.datetime(f:'%a %d/%m %T', l:fr_FR) "; format = "%a %d/%m %T";
locale = "fr_FR";
timezone = "Europe/Paris"; timezone = "Europe/Paris";
} }
]; ];