From 6e1cded0e101880d80c7d206456825553cc9d908 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Tue, 6 Jun 2023 00:19:37 +0200 Subject: [PATCH] Add last visual improvements --- nixos-configurations/pc/default.nix | 10 +++++++--- nixos-configurations/shared.nix | 12 +++++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/nixos-configurations/pc/default.nix b/nixos-configurations/pc/default.nix index 7dd8f0d..314037d 100644 --- a/nixos-configurations/pc/default.nix +++ b/nixos-configurations/pc/default.nix @@ -60,7 +60,11 @@ { modules-left = [ "sway/workspaces" ]; modules-center = [ "sway/window" ]; - modules-right = [ "memory" "disk" "cpu" "clock" ]; + modules-right = [ "user" "memory" "disk" "cpu" "clock" ]; + + user = { + format = "{user} - Uptime: {work_H}:{work_M}h"; + }; memory = { format = "Memory: {used}GiB"; @@ -76,7 +80,7 @@ clock = { interval = 60; - format = "{:%Y-%m-%d %H:%M}"; + format = "{:%Y-%m-%d - %H:%M}"; }; } ]; @@ -92,7 +96,7 @@ color: #e6e6e6; } - #workspaces button, #memory, #disk, #cpu, #clock { + #workspaces button, #user, #memory, #disk, #cpu, #clock { padding-top: 0.125rem; padding-bottom: 0.125rem; padding-left: 0.5rem; diff --git a/nixos-configurations/shared.nix b/nixos-configurations/shared.nix index 219dea8..5b4dc77 100644 --- a/nixos-configurations/shared.nix +++ b/nixos-configurations/shared.nix @@ -30,8 +30,12 @@ security.rtkit.enable = true; fonts = { - enableDefaultFonts = true; fonts = with pkgs; [ + noto-fonts + noto-fonts-emoji + noto-fonts-cjk-sans + nerdfonts + roboto jetbrains-mono ]; }; @@ -50,6 +54,12 @@ # Home manager configuration home-manager.users.thiloho = { pkgs, lib, ... }: { programs = { + bash = { + enable = true; + shellAliases = { + rbs = "sudo nixos-rebuild switch --flake ."; + }; + }; helix = { enable = true; settings = {