Migrate to home manager i3blocks module

This doesn't seem to work.
This commit is contained in:
Daniel Siepmann 2024-01-07 14:37:12 +01:00
parent 43e18c42b3
commit 203f6dbae0
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
5 changed files with 18 additions and 39 deletions

View file

@ -1,36 +0,0 @@
# i3blocks config file
#
# TODO: Use nix to reload the blocks on config change
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent
# Global properties
#
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
markup=pango
# Date Time
[time]
command=LC_TIME=en_US.utf8 date '+📅 %a %B %Y-%m-%d %H:%M:%S'; date '+📅 %a %d. %H:%M:%S'
interval=1
# vi: ft=conf

View file

@ -11,7 +11,6 @@ with pkgs; [
libnotify # Provide notify-send command
networkmanager_dmenu
i3blocks
st
ncdu
tree

View file

@ -17,6 +17,10 @@ in {
inherit pkgs sqlformat;
};
i3blocks = import ./programs/i3blocks.nix {
inherit pkgs;
};
git = import ./programs/git.nix {
inherit pkgs;
};

View file

@ -0,0 +1,14 @@
{ pkgs }:
{
enable = true;
bars = {
top = {
time = {
interval = 1;
command = "LC_TIME=en_US.utf8 ${pkgs.coreutils}/bin/date '+📅 %a %B %Y-%m-%d %H:%M:%S'; date '+📅 %a %d. %H:%M:%S'";
};
};
};
}

View file

@ -5,8 +5,6 @@
configFile = {
"i3blocks/config".source = ./files/i3-blocks;
"borg/exclude".source = ./files/borg-exclude;
"ctags/config.ctags".source = ./files/ctags;
"sc-im/scimrc".source = ./files/scimrc;