From e9ec4bfaa8c3a997514d59ef5e7cdd67861e4f0c Mon Sep 17 00:00:00 2001 From: Leo Alho <46094014+leoalho@users.noreply.github.com> Date: Sun, 8 Sep 2024 21:59:34 +0300 Subject: [PATCH] Create README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..480f874 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +## My NixOS configuration +### Running on a new machine +1. Install NixOS +2. Generate configuration files by running `nixos-create-config` +3. Add git to configuration.nix's environment.systemPackages +4. Add flakes support by appending `nix.settings.experimental-features = ["nix-command" "flakes"];` +5. Rebuild `nixos-rebuild switch` +6. Clone this repo to your destination of choice (I go with ~/.dotfiles for the time being) +7. Install [home-manage](https://nix-community.github.io/home-manager/) +8. Switch to the current version `nixos-rebuild switch --flake . --impure` (Impure, because we do not provide hardware configuration, since it is machine dependant) +9. Switch to the current version of home-manager `home-manager switch --flake .`