8000 GitHub - orzklv/nix: ❄️ | *NIX configuration flake hosted on GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

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

If you're planning to do clean install within Nix installer iso, do this:

# Clone the repository
git clone https://github.com/orzklv/nix.git config

# Partition disks regarding to configuration
# Replace ? with available hostname
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko ./config/nixos/?/disk-configuration.nix

# Install using flake configurations on top of partitioned disks
# Replace ? with available hostname
sudo nixos-install --flake ./config#?

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

github:orzklv/nix

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0