-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
2,438 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Test CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Nix | ||
uses: cachix/install-nix-action@v22 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
extra_nix_config: | | ||
experimental-features = nix-command flakes | ||
# - name: Build the flake | ||
# run: nix build .#homeConfigurations.sakhib@unstable.activationPackage --show-trace | ||
|
||
# - name: Test installation | ||
# run: nix profile install --profile /tmp/test-profile ./#homeConfigurations.sakhib@unstable.activationPackage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### Rust template | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
debug/ | ||
target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# MSVC Windows builds of rustc generate these, which store debugging information | ||
*.pdb | ||
|
||
### Nix template | ||
# Ignore build outputs from performing a nix-build or `nix build` command | ||
result | ||
result-* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"nixEnvSelector.suggestion": false, | ||
"nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix", | ||
"nix.enableLanguageServer": true, | ||
"nix.serverPath": "nil", | ||
"nix.serverSettings": { | ||
"nil": { | ||
"formatting": { "command": ["alejandra"] } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,86 @@ | ||
# instances | ||
| Configs of all servers hosted in one place | ||
<p align="center"> | ||
<img src=".github/assets/header.png" alt="Orzklv's {Nix}"> | ||
</p> | ||
|
||
<p align="center"> | ||
<h3 align="center">My nix configurations for all my NixOS & Apple machines.</h3> | ||
</p> | ||
|
||
<p align="center"> | ||
<img align="center" src="https://img.shields.io/github/languages/top/orzklv/nix?style=flat&logo=nixos&logoColor=ffffff&labelColor=242424&color=242424" alt="Top Used Language"> | ||
<a href="https://t.me/orzklvb"><img align="center" src="https://img.shields.io/badge/Chat-grey?style=flat&logo=telegram&logoColor=ffffff&labelColor=242424&color=242424" alt="Telegram Channel"></a> | ||
<a href="https://github.com/orzklv/nix/actions/workflows/test.yml"><img align="center" src="https://img.shields.io/github/actions/workflow/status/orzklv/nix/test.yml?style=flat&logo=github&logoColor=ffffff&labelColor=242424&color=242424" alt="Test CI"></a> | ||
</p> | ||
|
||
## 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 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 & Home Manager configs | ||
|
||
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 | ||
``` | ||
|
||
## 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. | ||
|
||
<p align="center"> | ||
<img src=".github/assets/footer.png" alt="Orzklv's {Nix}"> | ||
</p> |
Oops, something went wrong.