From 12b0f8e27a0ed9fe97e91956d7a64e7a0c2c538f Mon Sep 17 00:00:00 2001 From: smayzy Date: Tue, 29 Jul 2025 19:48:41 +0200 Subject: [PATCH] mv fastfetch to hm module --- hosts/common/home.nix | 5 ----- modules/home-manager/cli/default.nix | 6 ++++++ modules/home-manager/cli/fastfetch.nix | 15 +++++++++++++++ .../home-manager/cli}/fastfetch/config.jsonc | 0 .../cli}/fastfetch/stylish-reyna.png | Bin modules/home-manager/default.nix | 1 + 6 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 modules/home-manager/cli/default.nix create mode 100644 modules/home-manager/cli/fastfetch.nix rename {dotfiles => modules/home-manager/cli}/fastfetch/config.jsonc (100%) rename {dotfiles => modules/home-manager/cli}/fastfetch/stylish-reyna.png (100%) diff --git a/hosts/common/home.nix b/hosts/common/home.nix index 3836f78..bfec83d 100644 --- a/hosts/common/home.nix +++ b/hosts/common/home.nix @@ -18,11 +18,6 @@ ]; home.file = { - ".config/fastfetch" = { - source = builtins.toPath ../../dotfiles/fastfetch; - recursive = true; - force = true; - }; "wallpaper" = { source = builtins.toPath ../../wallpapers; recursive = true; diff --git a/modules/home-manager/cli/default.nix b/modules/home-manager/cli/default.nix new file mode 100644 index 0000000..aad8d5c --- /dev/null +++ b/modules/home-manager/cli/default.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + imports = [ + ./fastfetch.nix + ]; +} diff --git a/modules/home-manager/cli/fastfetch.nix b/modules/home-manager/cli/fastfetch.nix new file mode 100644 index 0000000..86d2f05 --- /dev/null +++ b/modules/home-manager/cli/fastfetch.nix @@ -0,0 +1,15 @@ +{ lib, smayzy, ... }: +let + inherit (lib) mkIf; +in +{ + config = mkIf smayzy.base-cli-pkgs.enable { + home.file = { + ".config/fastfetch" = { + source = builtins.toPath ./fastfetch; + recursive = true; + force = true; + }; + }; + }; +} diff --git a/dotfiles/fastfetch/config.jsonc b/modules/home-manager/cli/fastfetch/config.jsonc similarity index 100% rename from dotfiles/fastfetch/config.jsonc rename to modules/home-manager/cli/fastfetch/config.jsonc diff --git a/dotfiles/fastfetch/stylish-reyna.png b/modules/home-manager/cli/fastfetch/stylish-reyna.png similarity index 100% rename from dotfiles/fastfetch/stylish-reyna.png rename to modules/home-manager/cli/fastfetch/stylish-reyna.png diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index 6f07498..23c3f38 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -1,6 +1,7 @@ { ... }: { imports = [ + ./cli ./lf ./notif ./terminal