-
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
1 changed file
with
24 additions
and
6 deletions.
There are no files selected for viewing
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,16 +1,34 @@ | ||
# NixOS | ||
<div align="center"> | ||
<img alt="NixOS" src="https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nix-snowflake-white.svg" width="120px"/> | ||
<h1>❖ Snowflake ❖</h1> | ||
<img src="https://img.shields.io/github/stars/joinemm/snowflake?style=for-the-badge&labelColor=5074bf&color=ef65ea" alt="GitHub Repo stars"/> | ||
<img src="https://img.shields.io/github/last-commit/joinemm/snowflake?style=for-the-badge&labelColor=5074bf&color=ef65ea" alt="GitHub last commit"/> | ||
<img src="https://img.shields.io/github/repo-size/joinemm/snowflake?style=for-the-badge&labelColor=5074bf&color=ef65ea" alt="GitHub repo size"/> | ||
<a href="https://nixos.org" target="_blank"> | ||
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=5074bf&logo=NixOS&logoColor=white&color=ef65ea" alt="NixOS Unstable"/> | ||
</a> | ||
</div> | ||
|
||
This is my NixOS flake. | ||
These are my NixOS flake. | ||
|
||
The configuration is split into nixos modules and home-manager modules, | ||
It contains configurations for multiple host systems, and is | ||
split into nixos modules and home-manager modules, | ||
which are then imported from each host according to it's needs. | ||
|
||
Shell scripts built from the flake in https://github.com/joinemm/bin | ||
Shell scripts built from the flake at <https://github.com/joinemm/bin> | ||
|
||
# Installation | ||
## Installation | ||
|
||
For a given `host` | ||
|
||
``` | ||
```sh | ||
nixos-rebuild switch --flake .#host | ||
``` | ||
|
||
## Deploying to remote servers | ||
|
||
This goes for cloud hosts like hetzner. The target server needs to have passwordless sudo for the user you log in as. | ||
|
||
```sh | ||
nixos-rebuild switch --flake .#monitoring --use-remote-sudo --target-host $IP | ||
``` |