chore: format everything

This commit is contained in:
oddlama 2024-11-26 13:34:55 +01:00
parent deca311c68
commit 7ccd7856ee
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
162 changed files with 4750 additions and 3718 deletions

View file

@ -1,4 +1,5 @@
{config, ...}: {
{ config, ... }:
{
programs.htop = {
enable = true;
settings =
@ -12,21 +13,25 @@
hide_userland_threads = 1;
sort_key = 46; # Sort by %CPU if not in tree mode
}
// (with config.lib.htop;
// (
with config.lib.htop;
leftMeters [
(bar "LeftCPUs2")
(bar "Memory")
(bar "Swap")
(bar "ZFSARC")
(text "NetworkIO")
])
// (with config.lib.htop;
]
)
// (
with config.lib.htop;
rightMeters [
(bar "RightCPUs2")
(text "LoadAverage")
(text "Tasks")
(text "Uptime")
(text "Systemd")
]);
]
);
};
}

View file

@ -3,9 +3,11 @@
lib,
nixosConfig,
...
}: let
}:
let
inherit (lib) optionals;
in {
in
{
home.persistence."/state".files = optionals config.programs.ssh.enable [
".ssh/known_hosts"
];

View file

@ -1,4 +1,5 @@
{...}: {
{ ... }:
{
imports = [
./starship.nix
./nushell
@ -7,7 +8,7 @@
programs.zoxide = {
enable = true;
options = ["--cmd p"];
options = [ "--cmd p" ];
};
# nix-index-database is enabled globally for each user in config/home-manager.nix

View file

@ -1,4 +1,5 @@
{lib, ...}: {
{ lib, ... }:
{
programs.starship = {
enable = true;
settings = {

View file

@ -2,9 +2,10 @@
lib,
pkgs,
...
}: {
}:
{
# Needed in path for zsh-histdb
home.packages = [pkgs.sqlite-interactive];
home.packages = [ pkgs.sqlite-interactive ];
programs.zsh = {
enable = true;