From 23141dddec33100d0ef9fcc6efceeffa1710d9e8 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Mon, 15 Apr 2024 19:10:25 +0200 Subject: [PATCH] updated --- template/README.md | 10 ++++++---- template/flake.nix | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/template/README.md b/template/README.md index 91f4a98..f03ea64 100644 --- a/template/README.md +++ b/template/README.md @@ -5,15 +5,15 @@ ```txt 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 +nix develop .# --extra-experimental-features "nix-command flakes +nix run .#install --extra-experimental-features "nix-command flakes" cd .. mv nixos /persist cd /persist/nixos ``` -While formatting you will be asked for a password which is used for disk encryption with LUKS. + diff --git a/template/flake.nix b/template/flake.nix index c845fd4..66ddab1 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -39,7 +39,8 @@ apps.${system} = { install = { program = "${pkgs.writeShellScript "install" '' - sudo nixos-generate-config --no-filesystems --force --root /mnt ./system + sudo nixos-generate-config --no-filesystems --force --root /mnt --dir ./system + nix develop .# --extra-experimental-features "nix-command flakes sudo disko-install --flake .#nixos --disk main /dev/sda --write-efi-entries ''}"; type = "app";