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 ## 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 .#
``` ```

View File

@ -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 = [