docs: flake input fallback to default branch

This commit is contained in:
Malix - Alix Brunet committed 2026-06-01 11:44:03 +02:00
1 parent d84f0810be
commit b28e08a81f
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ the following:
```nix ```nix
{ {
description = "NixOS configuration with flakes"; description = "NixOS configuration with flakes";
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master"; inputs.nixos-hardware.url = "github:NixOS/nixos-hardware";
outputs = { self, nixpkgs, nixos-hardware }: { outputs = { self, nixpkgs, nixos-hardware }: {
# replace <your-hostname> with your actual hostname # replace <your-hostname> with your actual hostname
+2 -2
View File
@@ -11,7 +11,7 @@ To create an initial SD card image for installation:
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware/master"; nixos-hardware.url = "github:nixos/nixos-hardware";
}; };
outputs = { self, nixpkgs, nixos-hardware }: rec { outputs = { self, nixpkgs, nixos-hardware }: rec {
nixosConfigurations.m1 = nixpkgs.lib.nixosSystem { nixosConfigurations.m1 = nixpkgs.lib.nixosSystem {
@@ -81,7 +81,7 @@ flake:
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware/master"; nixos-hardware.url = "github:nixos/nixos-hardware";
}; };
outputs = { nixpkgs, nixos-hardware, ... }: { outputs = { nixpkgs, nixos-hardware, ... }: {
nixosConfigurations.m1 = nixpkgs.lib.nixosSystem { nixosConfigurations.m1 = nixpkgs.lib.nixosSystem {