Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orzklv/nix
❄️ | *NIX configuration flake hosted on GitHub
https://github.com/orzklv/nix
config dotfiles dots nix
Last synced: 2 months ago
JSON representation
❄️ | *NIX configuration flake hosted on GitHub
- Host: GitHub
- URL: https://github.com/orzklv/nix
- Owner: orzklv
- License: mit
- Created: 2023-10-07T10:49:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-29T23:48:31.000Z (2 months ago)
- Last Synced: 2024-10-29T23:49:14.100Z (2 months ago)
- Topics: config, dotfiles, dots, nix
- Language: Nix
- Homepage: https://github.com/orzklv/nix
- Size: 2.43 MB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
My nix configurations for all my NixOS & Apple machines.
## 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](https://determinate.systems/oss/).
```shell
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:
```shell
/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:
```shell
# 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:
```shell
# 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:
```shell
# 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:
> ```conf
> access-tokens = github.com=
> ```## Thanks
- [Template](https://github.com/Misterio77/nix-starter-configs) - Started with this template
- [Example](https://github.com/Misterio77/nix-config) - Learned from his configurations
- [Home Manager](https://github.com/nix-community/home-manager) - Simplyifying my life and avoid frustrations
- [Nix](https://nixos.org/) - Masterpiece of package management## License
This project is licensed under the MIT License - see the [LICENSE](license) file for details.