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.
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