updated
This commit is contained in:
parent
57c2f55072
commit
dfbfecb127
@ -3,10 +3,11 @@
|
|||||||
## Disk Partitioning
|
## Disk Partitioning
|
||||||
|
|
||||||
```txt
|
```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
|
cd nixos
|
||||||
nix develop .# --extra-experimental-features "nix-command flakes
|
nix run .#install --experimental-features "nix-command flakes"
|
||||||
nix run .#install --extra-experimental-features "nix-command flakes"
|
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
mv nixos /persist
|
mv nixos /persist
|
||||||
|
@ -39,8 +39,9 @@
|
|||||||
apps.${system} = {
|
apps.${system} = {
|
||||||
install = {
|
install = {
|
||||||
program = "${pkgs.writeShellScript "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 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";
|
type = "app";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user