i3 bar on thinky

This commit is contained in:
Cyryl Płotnicki 2023-06-20 09:25:11 +02:00
parent 36903e2be8
commit 4c6f740e8b
3 changed files with 13 additions and 23 deletions

View file

@ -1,20 +1,14 @@
{ { config, lib, pkgs, inputs, ... }: {
config,
lib,
pkgs,
inputs,
...
}: {
boot = { boot = {
kernelModules = ["kvm-intel"]; kernelModules = [ "kvm-intel" ];
initrd = { initrd = {
kernelModules = ["dm-snapshot"]; kernelModules = [ "dm-snapshot" ];
availableKernelModules = ["ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod"]; availableKernelModules =
[ "ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod" ];
}; };
loader.grub.enable = true; loader.grub.enable = true;
loader.grub.version = 2;
loader.grub.device = "/dev/sda"; loader.grub.device = "/dev/sda";
}; };
@ -23,14 +17,15 @@
fsType = "btrfs"; fsType = "btrfs";
}; };
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/8d51b38a-5d90-4a7a-a86a-0d57648fd82d"; boot.initrd.luks.devices."crypt".device =
"/dev/disk/by-uuid/8d51b38a-5d90-4a7a-a86a-0d57648fd82d";
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/195b3f15-885e-4123-879f-6e4591a58317"; device = "/dev/disk/by-uuid/195b3f15-885e-4123-879f-6e4591a58317";
fsType = "ext2"; fsType = "ext2";
}; };
swapDevices = []; swapDevices = [ ];
nix.settings = { nix.settings = {
max-jobs = 2; max-jobs = 2;

View file

@ -1,16 +1,12 @@
{ { config, pkgs, ... }: {
config,
pkgs,
...
}: {
programs.i3status = { programs.i3status = {
enable = true; enable = true;
enableDefault = false; enableDefault = false;
modules = { modules = {
"load" = {position = 1;}; "load" = { position = 1; };
"disk /" = { "disk /" = {
position = 2; position = 2;
settings = {format = " %avail";}; settings = { format = " %avail"; };
}; };
"memory" = { "memory" = {
settings = { settings = {
@ -31,7 +27,7 @@
position = 3; position = 3;
}; };
"time" = { "time" = {
settings = {format = "%a %d/%m %H:%M";}; settings = { format = "%a %d/%m %H:%M"; };
position = 9; position = 9;
}; };
}; };

View file

@ -43,8 +43,7 @@ in {
workspaceLayout = "tabbed"; workspaceLayout = "tabbed";
bars = [{ bars = [{
statusCommand = statusCommand = "${pkgs.i3status}/bin/i3status";
"${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-top.toml";
position = "top"; position = "top";
colors.background = "#001e26"; colors.background = "#001e26";
colors.statusline = "#708183"; colors.statusline = "#708183";