updated
This commit is contained in:
parent
8ac593fa84
commit
23141dddec
@ -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.
|
||||
<!-- While formatting you will be asked for a password which is used for disk encryption with LUKS.
|
||||
Make sure you have the correct keyboard layout set.
|
||||
|
||||
## [Optional] Generate Hardware Configuration (for new Systems)
|
||||
@ -25,5 +25,7 @@ sudo nixos-generate-config --no-filesystems --force --root /mnt ./system
|
||||
## Install from Flake
|
||||
|
||||
```txt
|
||||
nix-shell -p git
|
||||
|
||||
sudo nixos-install --no-root-password --root /mnt --flake .#
|
||||
```
|
||||
``` -->
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user