Skip to content

orzklv/nix

Repository files navigation

Orzklv's {Nix}

My nix configurations for all my NixOS & Apple machines.

Top Used Language Telegram Channel Test CI

About

In this repository I keep all my configurations and dot files to maintain my healthy development environment for any case. It contains configurations for shell and environments for any linux distro and macos. It comes with installer to shorten my time spending on set up.

Everytime I installed my dev env manually by myself, I started feeling like a garbage myself... So here you are!

Features

  • Syntax Highlighting
  • Auto Completions
  • Auto Suggestions
  • Rust made replacements
  • Key configurations
  • Software configurations
  • Selfmade scripts

Install Nix

Before installing my configuration, we need to get nix ready in our machine. We could have used official installer, but due to many reasons, I prefer going with installer by determinate.systems.

curl --proto '=https' --tlsv1.2 -sSf -L \
  https://install.determinate.systems/nix | sh -s -- install

Install Homebrew (if it's nix-darwin) configurations

Basically, we will go with official way of installing homebrew to get nix-darwin configurations working:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install my configurations

Home Manager configs

I do have many configurations written on my nix flake, however, for my macs, it actually detects automatically. However, for Linux machines, it's necessary to show which build to use:

# Apple Macs
nix run github:nix-community/home-maagner -- switch --flake github:orzklv/nix#sakhib@apple

# Intel Apple Macs
nix run github:nix-community/home-maagner -- switch --flake github:orzklv/nix#sakhib@old-apple

# Non NixOS Linux
nix run github:nix-community/home-maagner -- switch --flake github:orzklv/nix#sakhib@unstable

# Stable Latest NixOS
nix run github:nix-community/home-maagner -- switch --flake github:orzklv/nix#sakhib@stable

NixOS configurations

I've written ready configurations for my machines that are using NixOS, so here you are:

# Station (Home Gaming)
sudo nixos-rebuild switch --flake github:orzklv/nix#Guts --upgrade

# Experimental (Work PC)
sudo nixos-rebuild switch --flake github:orzklv/nix#Experimental --upgrade

Darwin configurations

The same actually goes for my Darwin machines as well, everything is ready for setup:

# MacBook Pro
nix run nix-darwin -- switch --flake github:orzklv/nix#Sokhibjons-MacBook-Pro # or
darwin-rebuild switch --flake github:orzklv/nix#Sokhibjons-MacBook-Pro

# Mac Studio
nix run nix-darwin -- switch --flake github:orzklv/nix#Sokhibjons-Mac-Studio # or
darwin-rebuild switch --flake github:orzklv/nix#Sokhibjons-Mac-Studio

If you hit GitHub's rate limit, put your GitHub token in ~/.config/nix/nix.conf file like this:

access-tokens = github.com=<YOUR_TOKEN>

Thanks

  • Template - Started with this template
  • Example - Learned from his configurations
  • Home Manager - Simplyifying my life and avoid frustrations
  • Nix - Masterpiece of package management

License

This project is licensed under the MIT License - see the LICENSE file for details.

Orzklv's {Nix}

About

❄️ | *NIX configuration flake hosted on GitHub

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published