From dfbfecb127628d13785fc1590eaa56d2cbd0f876 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Tue, 16 Apr 2024 18:03:48 +0200 Subject: [PATCH] updated --- template/README.md | 7 ++++--- template/flake.nix | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) 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"; };