diff --git a/template/README.md b/template/README.md index 6f94de9..91f4a98 100644 --- a/template/README.md +++ b/template/README.md @@ -3,8 +3,14 @@ ## Disk Partitioning ```txt -nix develop .#first-install --extra-experimental-features "nix-command flakes" -sudo disko --mode disko ./systems/desktop//disko.nix +nix flake new nixos --template git+https://git.krsnik.at/Kristian/impermanence-talk --extra-experimental-features "nix-command flakes" +cd nixos +nix develop --extra-experimental-features "nix-command flakes" +sudo disko --mode disko ./systems/disko.nix + +cd .. +mv nixos /persist +cd /persist/nixos ``` While formatting you will be asked for a password which is used for disk encryption with LUKS. @@ -13,14 +19,11 @@ Make sure you have the correct keyboard layout set. ## [Optional] Generate Hardware Configuration (for new Systems) ```txt -sudo nixos-generate-config --no-filesystems --root /mnt +sudo nixos-generate-config --no-filesystems --force --root /mnt ./system ``` -Integrate into existing config. - ## Install from Flake ```txt -sudo nixos-install --no-root-password --root /mnt --flake .# +sudo nixos-install --no-root-password --root /mnt --flake .# ``` - diff --git a/template/flake.nix b/template/flake.nix index de6e122..f75a52c 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -21,7 +21,7 @@ pkgs = inputs.nixpkgs.legacyPackages.${system}; in { nixosConfigurations = { - minimal = inputs.nixpkgs.lib.nixosSystem { + default = inputs.nixpkgs.lib.nixosSystem { inherit system; modules = [