diff --git a/README.md b/README.md index ad1e67c..5b10a6b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,9 @@ My personal NixOS stash🔥 The `sysConfig` directory contains subdirectories for each of my machines🖥️ + In the `homeConfig`🏠️ directory, you'll find various dotfiles and config files that make my home directory extra nixy + `terminal` contains a config with my IDE📝 and configs by calling `nix build` against this flake. If you need a list of available Nix packages and options: @@ -15,8 +17,10 @@ If you need a list of available Nix packages and options: ## Get Inspired 🌟 Fork this repo and create your own NixOS config💫 + Take inspiration💡, borrow ideas💭 and customize it to your 💖 content - ⚠️ Be sure to tailor any settings related to my hardware and system to your own hardware⚠️ + +⚠️ Be sure to tailor any settings related to my hardware and system to your own hardware⚠️ 👉️Run `nixos-generate-config` if you need a new `hardware-configuration.nix` diff --git a/flake.nix b/flake.nix index 0c462e5..19b3971 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,12 @@ allowUnfree = true; }; }; - myTerminal = pkgs.callPackage ./terminal/shell.nix { }; + configs = builtins.fetchTarball { + url = "https://github.com/itme-brain/nixos/raw/yolo-allin/terminal/configs.tar.gz"; + sha256 = "1q6qcwp06hgia0wiz11jynxjh8l527ckfjpgz1cylczdfbv60vk1"; + }; + + myTerminal = pkgs.callPackage ./terminal/shell.nix { inherit configs; }; in { diff --git a/terminal/configs.tar.gz b/terminal/configs.tar.gz index 82b363c..378e668 100644 Binary files a/terminal/configs.tar.gz and b/terminal/configs.tar.gz differ diff --git a/terminal/shell.nix b/terminal/shell.nix index a29d621..fb74760 100644 --- a/terminal/shell.nix +++ b/terminal/shell.nix @@ -1,4 +1,4 @@ -{ pkgs ? import {} }: +{ pkgs, configs, ... }: with pkgs; @@ -13,9 +13,7 @@ mkShell { shellHook = '' echo "Preparing your environment, Bryan..." - wget https://github.com/itme-brain/nixos/tree/yolo-allin/terminal/configs.tar.gz - - tar -xzvf configs.tar.gz -C . + tar -xzvf ${configs} -C . if [ -f ~/.bashrc ] || [ -f ~/.config/alacritty/alacritty.yml ] || [ -d ~/.config/nvim ] || [ -f ~/.gitconfig ]; then echo "Backing up existing config files..." @@ -37,7 +35,6 @@ mkShell { gpg --import configs/pub.key - rm configs.tar.gz rm configs find . -type d -empty -delete @@ -55,6 +52,6 @@ mkShell { fi echo "Terminal ready." - echp "Run `ldv` to get some existing environments." + echo "Run `ldv` to get some existing environments." ''; }