This commit is contained in:
Kristian Krsnik 2024-04-07 21:03:57 +02:00
parent 2c1594af74
commit 7f09dc7f9a
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
2 changed files with 11 additions and 8 deletions

View File

@ -3,8 +3,14 @@
## Disk Partitioning
```txt
nix develop .#first-install --extra-experimental-features "nix-command flakes"
sudo disko --mode disko ./systems/desktop/<system>/disko.nix
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
cd ..
mv nixos /persist
cd /persist/nixos
```
While formatting you will be asked for a password which is used for disk encryption with LUKS.
@ -13,14 +19,11 @@ Make sure you have the correct keyboard layout set.
## [Optional] Generate Hardware Configuration (for new Systems)
```txt
sudo nixos-generate-config --no-filesystems --root /mnt
sudo nixos-generate-config --no-filesystems --force --root /mnt ./system
```
Integrate into existing config.
## Install from Flake
```txt
sudo nixos-install --no-root-password --root /mnt --flake .#<system>
sudo nixos-install --no-root-password --root /mnt --flake .#
```

View File

@ -21,7 +21,7 @@
pkgs = inputs.nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
minimal = inputs.nixpkgs.lib.nixosSystem {
default = inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [