This commit is contained in:
Bryan Ramos 2023-06-08 15:30:17 -04:00
parent 180a98fa25
commit fb675823f3
4 changed files with 14 additions and 8 deletions

View file

@ -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,7 +17,9 @@ 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⚠
👉Run `nixos-generate-config` if you need a new `hardware-configuration.nix`

View file

@ -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
{

Binary file not shown.

View file

@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
{ 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."
'';
}