diff --git a/.gitignore b/.gitignore index 06b25ac..d12da7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /secret/ +/installer/*.lock +/installer/result/ diff --git a/README.md b/README.md index 7bbc740..ce5445e 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,9 @@ # Christoph Cullmann's NixOS configuration -# build unstable installer with latest kernel - - -```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; - }) - ]; - }; - }; - }; -} -``` +# build unstable minimal installer ```zsh -git init -git add flake.nix +cd installer 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 diff --git a/installer/flake.nix b/installer/flake.nix new file mode 100644 index 0000000..19921c7 --- /dev/null +++ b/installer/flake.nix @@ -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; + }) + ]; + }; + }; + }; +}