summaryrefslogtreecommitdiff
path: root/components/programs/fastfetch.nix
diff options
context:
space:
mode:
Diffstat (limited to 'components/programs/fastfetch.nix')
-rw-r--r--components/programs/fastfetch.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/components/programs/fastfetch.nix b/components/programs/fastfetch.nix
new file mode 100644
index 0000000..63f148e
--- /dev/null
+++ b/components/programs/fastfetch.nix
@@ -0,0 +1,57 @@
+{lib, config, ...}: {
+ options.fastfetch.enable = lib.mkEnableOption "Fastfetch's 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"
+ ];
+ };
+ };
+ };
+}