Skip to content

Creator54/nix-systems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix-Systems: Nix Config across my systems

Configures NixOS and Home-Manager as NixOS Module to manage user with my configs across systems which I use.

One Step Setup

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'

Building and Testing a Demo-VM

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

Running with deploy-rs

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

SSH Configuration

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

Installing NixOS Config Locally

To install a NixOS config locally:

sudo nixos-rebuild switch --flake .#<flake>
sudo nixos-rebuild switch --flake github:creator54/nix-systems#<flake>

Installing Different Profiles on Different Systems via nix run

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