2024-10-28 21:13:36 +01:00
|
|
|
# build unstable installer with latest kernel
|
2024-05-29 22:13:47 +02:00
|
|
|
|
2024-11-02 15:50:05 +01:00
|
|
|
|
|
|
|
```nix
|
2024-05-29 22:13:47 +02:00
|
|
|
{
|
|
|
|
description = "installation media";
|
|
|
|
inputs.nixos.url = "nixpkgs/nixos-unstable";
|
|
|
|
outputs = { self, nixos }: {
|
|
|
|
nixosConfigurations = {
|
|
|
|
exampleIso = nixos.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2024-10-29 17:54:46 +01:00
|
|
|
"${nixos}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix"
|
2024-11-02 15:50:05 +01:00
|
|
|
({ config, pkgs, ... }: {
|
|
|
|
networking.wireless.enable = false;
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
})
|
2024-05-29 22:13:47 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
2024-11-02 15:50:05 +01:00
|
|
|
```
|
2024-05-29 22:13:47 +02:00
|
|
|
|
2024-11-02 15:50:05 +01:00
|
|
|
```zsh
|
2024-05-29 22:13:47 +02:00
|
|
|
git init
|
|
|
|
git add flake.nix
|
|
|
|
nix --extra-experimental-features flakes --extra-experimental-features nix-command build .#nixosConfigurations.exampleIso.config.system.build.isoImage
|
|
|
|
|
2024-10-24 09:59:58 +02:00
|
|
|
doas dd if=result/iso/nixos-*-x86_64-linux.iso of=/dev/sda bs=4M conv=fsync
|
2024-11-02 15:50:05 +01:00
|
|
|
```
|
2024-10-24 17:53:45 +02:00
|
|
|
|
|
|
|
# reset home manager
|
|
|
|
|
2024-11-02 15:50:05 +01:00
|
|
|
```zsh
|
2024-10-24 17:53:45 +02:00
|
|
|
rm /data/home/cullmann/.local/state/nix/profiles/home-manager* /date/home/cullmann/.local/state/home-manager/gcroots/current-home
|
|
|
|
rm /data/home/sandbox-games/.local/state/nix/profiles/home-manager* /date/home/sandbox-games/.local/state/home-manager/gcroots/current-home
|
|
|
|
rm /data/home/sandbox-kde/.local/state/nix/profiles/home-manager* /date/home/sandbox-kde/.local/state/home-manager/gcroots/current-home
|
2024-11-02 15:50:05 +01:00
|
|
|
```
|