-
Acquire NixOS 21.11 or newer:
# Yoink nixos-unstable wget -O nixos.iso https://channels.nixos.org/nixos-unstable/latest-nixos-minimal-x86_64-linux.iso # Write it to a flash drive cp nixos.iso /dev/sdX
-
Boot into the installer.
-
Switch to root user:
sudo su -
-
Do your partitions and mount your root to
/mnt
(for example). -
Install these dotfiles:
nix-shell -p git nixFlakes # Set HOST to the desired hostname of this system HOST=... # Set USER to your desired username (defaults to hlissner) USER=... git clone https://github.com/p2d0/nix-dotfiles /etc/nixos cd /etc/nixos # Create a host config in `hosts/` and add it to the repo: mkdir -p hosts/$HOST nixos-generate-config --root /mnt --dir /etc/nixos/hosts/$HOST rm -f hosts/$HOST/configuration.nix cp hosts/main/configuration.nix hosts/$HOST/configuration.nix vim hosts/$HOST/configuration.nix # configure this for your system; don't use it verbatim! git add hosts/$HOST # Install nixOS USER=$USER nixos-install --root /mnt --impure --flake .#$HOST # If you get 'unrecognized option: --impure', replace '--impure' with # `--option pure-eval no`. # Then move the dotfiles to the mounted drive! mv /etc/nixos /mnt/etc/nixos
nix-dotfiles's Introduction
nix-dotfiles's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.