add installer flake
This commit is contained in:
parent
a70d7c057e
commit
3185ed0c38
3 changed files with 22 additions and 25 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
||||||
/secret/
|
/secret/
|
||||||
|
/installer/*.lock
|
||||||
|
/installer/result/
|
||||||
|
|
27
README.md
27
README.md
|
@ -1,32 +1,9 @@
|
||||||
# Christoph Cullmann's NixOS configuration
|
# Christoph Cullmann's NixOS configuration
|
||||||
|
|
||||||
# build unstable installer with latest kernel
|
# build unstable minimal installer
|
||||||
|
|
||||||
|
|
||||||
```nix
|
|
||||||
{
|
|
||||||
description = "installation media";
|
|
||||||
inputs.nixos.url = "nixpkgs/nixos-unstable";
|
|
||||||
outputs = { self, nixos }: {
|
|
||||||
nixosConfigurations = {
|
|
||||||
exampleIso = nixos.lib.nixosSystem {
|
|
||||||
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
|
```zsh
|
||||||
git init
|
cd installer
|
||||||
git add flake.nix
|
|
||||||
nix --extra-experimental-features flakes --extra-experimental-features nix-command build .#nixosConfigurations.exampleIso.config.system.build.isoImage
|
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
|
doas dd if=result/iso/nixos-*-x86_64-linux.iso of=/dev/sda bs=4M conv=fsync
|
||||||
|
|
18
installer/flake.nix
Normal file
18
installer/flake.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
description = "installation media";
|
||||||
|
inputs.nixos.url = "nixpkgs/nixos-unstable";
|
||||||
|
outputs = { self, nixos }: {
|
||||||
|
nixosConfigurations = {
|
||||||
|
exampleIso = nixos.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
"${nixos}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
|
||||||
|
({ config, pkgs, ... }: {
|
||||||
|
networking.wireless.enable = false;
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue