diff --git a/template/README.md b/template/README.md index 5103ecc..b4c917f 100644 --- a/template/README.md +++ b/template/README.md @@ -3,10 +3,11 @@ ## Disk Partitioning ```txt -nix flake new nixos --template git+https://git.krsnik.at/Kristian/impermanence-talk --extra-experimental-features "nix-command flakes" +sudo loadkeys +nix-shell -p git +nix flake new nixos --template git+https://git.krsnik.at/Kristian/impermanence-talk --experimental-features "nix-command flakes" cd nixos -nix develop .# --extra-experimental-features "nix-command flakes -nix run .#install --extra-experimental-features "nix-command flakes" +nix run .#install --experimental-features "nix-command flakes" cd .. mv nixos /persist diff --git a/template/flake.nix b/template/flake.nix index a633519..a63ce95 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -39,8 +39,9 @@ apps.${system} = { install = { program = "${pkgs.writeShellScript "install" '' + sudo run github:nix-community/disko/${inputs.disko.rev} -- --mode disko ./system/disko.nix sudo nixos-generate-config --no-filesystems --force --root /mnt --dir ./system - sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/${inputs.disko.rev}#disko-install -- --flake .#nixos --disk main /dev/sda --write-efi-boot-entries + sudo nixos-install --no-root-password --root /mnt --flake .#nixos ''}"; type = "app"; };