summaryrefslogtreecommitdiff
path: root/hermes/home-manager/leo/programs/fastfetch.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hermes/home-manager/leo/programs/fastfetch.nix')
-rw-r--r--hermes/home-manager/leo/programs/fastfetch.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/hermes/home-manager/leo/programs/fastfetch.nix b/hermes/home-manager/leo/programs/fastfetch.nix
new file mode 100644
index 0000000..94eccab
--- /dev/null
+++ b/hermes/home-manager/leo/programs/fastfetch.nix
@@ -0,0 +1,57 @@
+{lib, config, ...}: {
+ options.fastfetch.enable = lib.mkEnableOption "fastfetch config";
+
+ config = lib.mkIf config.fastfetch.enable {
+ programs.fastfetch = {
+ enable = true;
+
+ settings = {
+ display = {
+ size = {
+ maxPrefix = "MB";
+ ndigits = 0;
+ spaceBeforeUnit = "never";
+ };
+ freq = {
+ ndigits = 3;
+ spaceBeforeUnit = "never";
+ };
+ };
+ modules = [
+ "title"
+ "separator"
+ "os"
+ {
+ type = "kernel";
+ format = "{release}";
+ }
+ {
+ type = "packages";
+ combined = true;
+ }
+ "shell"
+ {
+ type = "display";
+ compactType = "original";
+ key = "Resolution";
+ }
+ "de"
+ "wm"
+ "terminal"
+ "cpu"
+ {
+ type = "gpu";
+ key = "GPU";
+ format = "{name}";
+ }
+ {
+ type = "memory";
+ format = "{used} / {total}";
+ }
+ "break"
+ "colors"
+ ];
+ };
+ };
+ };
+}