From 95178cab63bb91fd085000110183516a5ad77920 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Sat, 3 Jan 2026 17:01:36 +0000 Subject: [PATCH] added: hyfetch --- hosts/doloro/home.nix | 1 + modules/hyfetch/default.nix | 4 ++++ modules/hyfetch/home.nix | 40 +++++++++++++++++++++++++++++++++++++ modules/hyfetch/nixos.nix | 20 +++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 modules/hyfetch/default.nix create mode 100644 modules/hyfetch/home.nix create mode 100644 modules/hyfetch/nixos.nix diff --git a/hosts/doloro/home.nix b/hosts/doloro/home.nix index 8832eb6..8995314 100644 --- a/hosts/doloro/home.nix +++ b/hosts/doloro/home.nix @@ -7,6 +7,7 @@ }: { modules = { + hyfetch.enable = true; Hyprland = { enable = true; suspend-on-hibernate = true; diff --git a/modules/hyfetch/default.nix b/modules/hyfetch/default.nix new file mode 100644 index 0000000..d7a90be --- /dev/null +++ b/modules/hyfetch/default.nix @@ -0,0 +1,4 @@ +_: { + home = ./home.nix; + # nixos = ./nixos.nix; +} diff --git a/modules/hyfetch/home.nix b/modules/hyfetch/home.nix new file mode 100644 index 0000000..0024b75 --- /dev/null +++ b/modules/hyfetch/home.nix @@ -0,0 +1,40 @@ +{ + config, + lib, + pkgs, + fetchFromGitHub, + ... +}: +let + cfg = config.modules.hyfetch; +in +{ + options.modules.hyfetch = { + enable = lib.mkEnableOption "hyfetchm"; + }; + config = lib.mkIf cfg.enable { + home.packages = [ ] // [ pkgs.fastfetch ]; + hyfetch = { + enable = true; + settings = { + "preset" = "bisexual"; + "mode" = "rgb"; + "auto_detect_light_dark" = true; + "light_dark" = "dark"; + "lightness" = 0.5; + "color_align" = { + "mode" = "custom"; + "custom_colors" = { + "1" = 1; + "2" = 0; + }; + }; + "backend" = "fastfetch"; + "args" = null; + "distro" = null; + "pride_month_disable" = false; + "custom_ascii_path" = null; + }; + }; + }; +} diff --git a/modules/hyfetch/nixos.nix b/modules/hyfetch/nixos.nix new file mode 100644 index 0000000..03b1eb5 --- /dev/null +++ b/modules/hyfetch/nixos.nix @@ -0,0 +1,20 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.modules.fish; +in +{ + options.modules.fish = { + enable = lib.mkEnableOption "Fish"; + }; + config = lib.mkIf cfg.enable { + users.defaultUserShell = pkgs.fish; + programs.fish = { + enable = true; + }; + }; +}