This repository contains NixOS configurations for multiple systems.
.
├── modules/ # NixOS modules
│ ├── configs/ # Configurations
│ ├── services/ # Service-related modules
│ ├── networking/ # Network-related modules
│ ├── website/ # Website configurations
│ ├── docker/ # Docker configurations
│ └── local-system/ # System-specific local configs
├── systems/ # System-specific configurations
│ ├── omnix/ # Omnix system
│ ├── cospi/ # Cospi system
│ ├── server/ # Server system
│ ├── blade/ # Blade system
│ └── phoenix/ # Phoenix system
├── flake.nix # Main flake configuration
└── config.nix # Global configuration
Live boot a NixOS USB and run
sudo sh -c 'curl -sSL https://raw.githubusercontent.com/Creator54/nix-systems/refs/heads/main/setup.sh | bash -s /dev/nvme0n1 omnix'
To build and test a demo-VM from this config on a Nix System:
nix run nixpkgs/release-23.11#nixos-rebuild -- build-vm --flake .#phoenix --fast
nix run nixpkgs/release-23.11#nixos-rebuild -- build-vm --flake github:creator54/nix-systems#phoenix --fast
To run with deploy-rs:
nix run nixpkgs/release-23.11#deploy-rs -- .#phoenix
nix run nixpkgs/release-23.11#deploy-rs -- github:creator54/nix-systems#phoenix
Add the following Host details to your ~/.ssh/config
file:
Host phoenix
HostName <server_ip_address>
User <server_user_name>
IdentityFile <full_path_private_ssh_key>
Compression yes
LogLevel QUIET
IdentitiesOnly yes
To install a NixOS config locally:
sudo nixos-rebuild switch --flake .#<flake>
sudo nixos-rebuild switch --flake github:creator54/nix-systems#<flake>
To install different profiles on different systems via nix run
:
nix run nixpkgs/release-23.11#deploy-rs -- .#server --hostname=phoenix
nix run nixpkgs/release-23.11#deploy-rs -- github:creator54/nix-systems#server --hostname=phoenix