Skip to content

Commit

Permalink
server modules
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Jun 29, 2024
1 parent ec6ca43 commit 7a38522
Show file tree
Hide file tree
Showing 48 changed files with 2,438 additions and 4 deletions.
Binary file added .github/assets/footer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/assets/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
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
21 changes: 21 additions & 0 deletions .gitignore
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-*

11 changes: 11 additions & 0 deletions .vscode/settings.json
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"] }
}
}
}
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Kolyma's Laboratory
Copyright (c) 2023 Sokhibjon Orzikulov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
88 changes: 86 additions & 2 deletions README.md
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>
Loading

0 comments on commit 7a38522

Please sign in to comment.