24 current 2025-04-28 22:10:57 25.05.20250424.f771eb4 6.12.24 *

This commit is contained in:
2025-04-28 22:11:11 -04:00
parent 7d51a56a7a
commit f1da08b74b
6 changed files with 51 additions and 13 deletions

View File

@@ -2,14 +2,14 @@
description = "NixOS system configuration"; description = "NixOS system configuration";
nixConfig = { nixConfig = {
substituters = [ # substituters = [
"https://cache.nixos.org/" # "https://cache.nixos.org/"
"https://nix-community.cachix.org" # "https://nix-community.cachix.org"
]; # ];
trusted-public-keys = [ # trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" # "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" # "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
]; # ];
}; };
inputs = { inputs = {

View File

@@ -29,13 +29,14 @@ module-margin-right = 0
tray-position = right tray-position = right
tray-detached = false tray-detached = false
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = "NotoSans-Regular:size=11;2.5" font-0 = "NotoSans-Regular:size=11;2.5"
font-1 = "JetBrainsMono Nerd Font:style=Regular:size=11;2.5" font-1 = "JetBrainsMono Nerd Font:style=Regular:size=11;2.5"
font-2 = "Noto Sans Symbols:size=13;1" font-2 = "Noto Sans Symbols:size=13;1"
background = ${colors.background}
foreground = ${colors.foreground}
; noto -> text font ; noto -> text font
; jetbrains -> icons ; jetbrains -> icons

View File

@@ -37,6 +37,39 @@
# ${ip} route | ${grep} default | ${awk} '{print $5}' > $out # ${ip} route | ${grep} default | ${awk} '{print $5}' > $out
# ''; # '';
res = builtins.getEnv "RES";
hd = ''
[bar/mybar]
height = 20
font-0 = "NotoSans-Regular:size=11;2.5"
font-1 = "JetBrainsMono Nerd Font:style=Regular:size=11;2.5"
font-2 = "Noto Sans Symbols:size=11;1"
'';
fhd = ''
[bar/mybar]
height = 20
font-0 = "NotoSans-Regular:size=11;2.5"
font-1 = "JetBrainsMono Nerd Font:style=Regular:size=11;2.5"
font-2 = "Noto Sans Symbols:size=11;1"
'';
qhd = ''
[bar/mybar]
height = 25
font-0 = "NotoSans-Regular:size=11;2.5"
font-1 = "JetBrainsMono Nerd Font:style=Regular:size=11;2.5"
font-2 = "Noto Sans Symbols:size=13;1"
'';
mon =
if res == "1366x768"
then hd
else if res == "2560x1440"
then qhd
else fhd;
internets = '' internets = ''
[module/network] [module/network]
type = internal/network type = internal/network
@@ -61,7 +94,7 @@ in {
enable = true; enable = true;
package = mypolybar; package = mypolybar;
config = ./config.ini; config = ./config.ini;
extraConfig = bctl + internets; extraConfig = bctl + internets + mon;
# my savior: https://www.reddit.com/r/NixOS/comments/v8ikwq/polybar_doesnt_start_at_launch/ # my savior: https://www.reddit.com/r/NixOS/comments/v8ikwq/polybar_doesnt_start_at_launch/
script = '' script = ''
# echo "none" # echo "none"

View File

@@ -14,7 +14,7 @@ if git --git-dir /home/synchronous/nix-cfg/.git diff-index --quiet HEAD; then
exit 0 exit 0
fi fi
/run/current-system/sw/bin/nix flake check /home/synchronous/nix-cfg/ || { echo "Flake check failed. Exiting."; exit 1; } # /run/current-system/sw/bin/nix flake check /home/synchronous/nix-cfg/ || { echo "Flake check failed. Exiting."; exit 1; }
# Autoformat your nix files # Autoformat your nix files
alejandra . &>/dev/null \ alejandra . &>/dev/null \

View File

View File

@@ -25,6 +25,10 @@ in {
users.synchronous = import ../../home/home.nix; users.synchronous = import ../../home/home.nix;
}; };
environment.variables = {
RES = "1366x768";
};
# Bootloader. # Bootloader.
# boot.loader.grub.enable = true; # boot.loader.grub.enable = true;
# boot.loader.grub.device = "/dev/sda"; # boot.loader.grub.device = "/dev/sda";