summaryrefslogtreecommitdiff
path: root/modules/packages/fastfetch.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/packages/fastfetch.nix')
-rw-r--r--modules/packages/fastfetch.nix92
1 files changed, 92 insertions, 0 deletions
diff --git a/modules/packages/fastfetch.nix b/modules/packages/fastfetch.nix
new file mode 100644
index 0000000..400d8ea
--- /dev/null
+++ b/modules/packages/fastfetch.nix
@@ -0,0 +1,92 @@
+{
+ self,
+ inputs,
+ ...
+}: {
+ flake.wrapperModules.fastfetch = {
+ config,
+ lib,
+ ...
+ }: {
+ settings = {
+ logo = {
+ source = config.pkgs.writeText "tree" ''
+ * *
+ * * *
+ * * * * *
+ * * * * *
+ * * * * * * *
+ * * * * * .# * *
+ * * * #. .# * *
+ * "#. #: #" * * *
+ * * * "#. ##" *
+ * "###
+ "##
+ ##.
+ .##:
+ :###
+ ;###
+ ,####.
+ /\/\/\/\/\/.######.\/\/\/\/\
+ ''; # ascii art by Joan G. Stark
+ padding = {
+ right = 2;
+ left = 1;
+ top = 2;
+ };
+ color = {
+ "1" = "bright_green";
+ };
+ };
+
+ display = {
+ color = "bright_green";
+ };
+
+ modules = [
+ "title"
+ "separator"
+ {
+ type = "datetime";
+ key = "Date";
+ format = "{weekday}, {year}-{month-pretty}-{day-pretty}";
+ }
+ {
+ type = "datetime";
+ key = "Time";
+ format = "{hour-pretty}:{minute-pretty}:{second-pretty}, {timezone-name}, UTC{offset-from-utc}";
+ }
+ "uptime"
+ {
+ type = "battery";
+ key = "Battery";
+ format = "{capacity}, {time-formatted} [{status}]";
+ }
+ "separator"
+ "os"
+ "host"
+ "kernel"
+ "packages"
+ "shell"
+ "display"
+ "wm"
+ "separator"
+ "cpu"
+ "gpu"
+ "memory"
+ "swap"
+ "disk"
+ "localip"
+ "break"
+ "colors"
+ ];
+ };
+ };
+
+ perSystem = {pkgs, ...}: {
+ packages.fastfetch = inputs.wrapper-modules.wrappers.fastfetch.wrap {
+ inherit pkgs;
+ imports = [self.wrapperModules.fastfetch];
+ };
+ };
+}