This commit is contained in:
Kristian Krsnik 2024-04-16 18:03:48 +02:00
parent 57c2f55072
commit dfbfecb127
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
2 changed files with 6 additions and 4 deletions

View File

@ -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 <keyboard_layout>
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

View File

@ -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";
};