create an installer with network manager
This commit is contained in:
parent
cef39b1c10
commit
6ec0de3d38
11
README.md
11
README.md
|
@ -1,5 +1,7 @@
|
|||
# build unstable installer with latest kernel
|
||||
|
||||
|
||||
```nix
|
||||
{
|
||||
description = "installation media";
|
||||
inputs.nixos.url = "nixpkgs/nixos-unstable";
|
||||
|
@ -9,20 +11,29 @@
|
|||
system = "x86_64-linux";
|
||||
modules = [
|
||||
"${nixos}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix"
|
||||
({ config, pkgs, ... }: {
|
||||
networking.wireless.enable = false;
|
||||
networking.networkmanager.enable = true;
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
```zsh
|
||||
git init
|
||||
git add flake.nix
|
||||
nix --extra-experimental-features flakes --extra-experimental-features nix-command build .#nixosConfigurations.exampleIso.config.system.build.isoImage
|
||||
|
||||
doas dd if=result/iso/nixos-*-x86_64-linux.iso of=/dev/sda bs=4M conv=fsync
|
||||
```
|
||||
|
||||
# reset home manager
|
||||
|
||||
```zsh
|
||||
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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue