From bb7a22177583ad9031891b41f0b82a0cdd44fc6c Mon Sep 17 00:00:00 2001 From: pagedmov Date: Mon, 21 Oct 2024 22:16:18 -0400 Subject: [PATCH] added files.nix as a place to keep hardcoded configurations, added a personal neofetch config to it --- .../{scripts/commands/movfetch.nix => files.nix} | 13 +++---------- modules/home/home-manager.nix | 1 + 2 files changed, 4 insertions(+), 10 deletions(-) rename modules/home/{scripts/commands/movfetch.nix => files.nix} (92%) diff --git a/modules/home/scripts/commands/movfetch.nix b/modules/home/files.nix similarity index 92% rename from modules/home/scripts/commands/movfetch.nix rename to modules/home/files.nix index 64f181f..df8afad 100644 --- a/modules/home/scripts/commands/movfetch.nix +++ b/modules/home/files.nix @@ -1,10 +1,7 @@ +{ self, ...}: + { - self, - pkgs, - ... -}: -{ - home.file.".config/neofetch/config".text = '' + home.file.".config/neofetch/config.conf".text = '' username=$(whoami) name_length=''${#username} total_width=40 @@ -111,8 +108,4 @@ xoffset=0 stdout="off" ''; - - movfetch = pkgs.writeShellScriptBin "movfetch" '' - neofetch --config $HOME/.config/neofetch/config - ''; } diff --git a/modules/home/home-manager.nix b/modules/home/home-manager.nix index 8ffc4d0..16a3c82 100644 --- a/modules/home/home-manager.nix +++ b/modules/home/home-manager.nix @@ -29,6 +29,7 @@ in { ./programs ./environment ./scripts + ./files.nix ]; home = { username = "${username}";