Creating a NixOS live CD: Difference between revisions
Marked this version for translation |
export iso as package output, build with path:$PWD instead of git init |
||
(One intermediate revision by one other user not shown) | |||
Line 53: | Line 53: | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; | inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; | ||
outputs = { self, nixpkgs }: { | outputs = { self, nixpkgs }: { | ||
packages.x86_64-linux.default = self.nixosConfigurations.exampleIso.config.system.build.isoImage; | |||
nixosConfigurations = { | nixosConfigurations = { | ||
exampleIso = nixpkgs.lib.nixosSystem { | exampleIso = nixpkgs.lib.nixosSystem { | ||
Line 74: | Line 75: | ||
</translate> | </translate> | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# nix build path:$PWD | |||
# nix build | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
Line 140: | Line 140: | ||
</translate> | </translate> | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix" line="1"> | ||
{ | { | ||
... | ... | ||
networking = { | networking = { | ||
usePredictableInterfaceNames = false; | usePredictableInterfaceNames = false; | ||
interfaces.eth0. | interfaces.eth0.ipv4.addresses = [{ | ||
address = "64.137.201.46"; | address = "64.137.201.46"; | ||
prefixLength = 24; | prefixLength = 24; |