Skip to content

Godalin/nix-config

Repository files navigation

Cross-Platform Nix Configuration

All these platforms can share the same home.nix for the godalin user.

Nix-Darwin (macOS)

For MacOS with Nix-Darwin:

sudo darwin-rebuild switch --flake .#LinyudeMacBook-Air

NixOS for WSL

For Windows Subsystem for Linux with NixOS-WSL:

sudo nixos-rebuild switch --flake .#gk-nixos-wsl

NixOS

TODO

Standalone Home Manager (Linux, e.g. Ubuntu)

For any x86_64 Linux machine with Home Manager:

China

# Set Up Nix
sh <(curl -L https://mirrors.tuna.tsinghua.edu.cn/nix/latest/install) --daemon

# Install Home Manager (if not already installed)
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install

# Deploy from GitHub
home-manager switch --flake github:Godalin/nix-darwin#godalin@x86_64-linux

Regular

# set up nix
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon

# Install Home Manager (if not already installed)
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install

# Deploy from GitHub
home-manager switch --flake github:Godalin/nix-darwin#godalin@x86_64-linux

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published