updated
This commit is contained in:
parent
2c1594af74
commit
7f09dc7f9a
@ -3,8 +3,14 @@
|
|||||||
## Disk Partitioning
|
## Disk Partitioning
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
nix develop .#first-install --extra-experimental-features "nix-command flakes"
|
nix flake new nixos --template git+https://git.krsnik.at/Kristian/impermanence-talk --extra-experimental-features "nix-command flakes"
|
||||||
sudo disko --mode disko ./systems/desktop/<system>/disko.nix
|
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.
|
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)
|
## [Optional] Generate Hardware Configuration (for new Systems)
|
||||||
|
|
||||||
```txt
|
```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
|
## Install from Flake
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
sudo nixos-install --no-root-password --root /mnt --flake .#<system>
|
sudo nixos-install --no-root-password --root /mnt --flake .#
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
minimal = inputs.nixpkgs.lib.nixosSystem {
|
default = inputs.nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
Loading…
Reference in New Issue
Block a user