https://github.com/afrianjunior/universe
A Nix universe
https://github.com/afrianjunior/universe
Last synced: over 1 year ago
JSON representation
A Nix universe
- Host: GitHub
- URL: https://github.com/afrianjunior/universe
- Owner: afrianjunior
- Created: 2024-11-10T16:39:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-01T23:21:50.000Z (over 1 year ago)
- Last Synced: 2025-03-02T00:23:27.298Z (over 1 year ago)
- Language: Nix
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Deployment
### Once, setup Server from local
``` shell
nix run github:nix-community/nixos-anywhere -- --build-on-remote --flake .#juun-nix-server root@ip
```
### Continue Integration
on local or build machine
``` shell
nix run nixpkgs#nixos-rebuild -- --flake .#juun-nix-server --fast --target-host "root@ip" --build-host "root@ip" --use-remote-sudo --fast switch
```
## Secrets
Aware to encrypt before commit
### Encript
``` shell
nix run nixpkgs#sops -- encrypt secrets/secret.yaml -i
```
### Decrypt
``` shell
nix run nixpkgs#sops -- decrypt -i secrets/secret.yaml
```
### Update keys if add new key on .sops.yaml
``` shell
nix run nixpkgs#sops -- updatekeys secrets/secret.yaml
```