mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-04 06:53:30 +01:00
docs: flake input follows nixpkgs
This commit is contained in:
7 files changed
+33
-7
No files matched your search
@@ -32,7 +32,14 @@ the following:
|
|||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
description = "NixOS configuration with flakes";
|
description = "NixOS configuration with flakes";
|
||||||
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware";
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||||
|
nixos-hardware = {
|
||||||
|
url = "github:nixos/nixos-hardware";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixos-hardware }: {
|
outputs = { self, nixpkgs, nixos-hardware }: {
|
||||||
# replace <your-hostname> with your actual hostname
|
# replace <your-hostname> with your actual hostname
|
||||||
|
|||||||
@@ -11,7 +11,10 @@ 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";
|
nixos-hardware = {
|
||||||
|
url = "github:nixos/nixos-hardware";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, nixos-hardware }: rec {
|
outputs = { self, nixpkgs, nixos-hardware }: rec {
|
||||||
nixosConfigurations.m1 = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.m1 = nixpkgs.lib.nixosSystem {
|
||||||
@@ -81,7 +84,10 @@ flake:
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixos-hardware.url = "github:nixos/nixos-hardware";
|
nixos-hardware = {
|
||||||
|
url = "github:nixos/nixos-hardware";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
outputs = { nixpkgs, nixos-hardware, ... }: {
|
outputs = { nixpkgs, nixos-hardware, ... }: {
|
||||||
nixosConfigurations.m1 = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.m1 = nixpkgs.lib.nixosSystem {
|
||||||
|
|||||||
@@ -6,7 +6,10 @@ Create and customize a `flake.nix` file:
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixos-hardware.url = "github:nixos/nixos-hardware";
|
nixos-hardware = {
|
||||||
|
url = "github:nixos/nixos-hardware";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, nixos-hardware, ... }:
|
outputs = { nixpkgs, nixos-hardware, ... }:
|
||||||
|
|||||||
@@ -6,7 +6,10 @@ Create and configure the `flake.nix` file:
|
|||||||
``` nix
|
``` nix
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
inputs.nixos-hardware.url = "github:nixos/nixos-hardware";
|
inputs.nixos-hardware = {
|
||||||
|
url = "github:nixos/nixos-hardware";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixos-hardware, flake-utils, ... }:
|
outputs = { self, nixpkgs, nixos-hardware, flake-utils, ... }:
|
||||||
|
|||||||
@@ -5,7 +5,10 @@ Create and configure the `flake.nix` file:
|
|||||||
``` nix
|
``` nix
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
inputs.nixos-hardware.url = "github:nixos/nixos-hardware";
|
inputs.nixos-hardware = {
|
||||||
|
url = "github:nixos/nixos-hardware";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixos-hardware, ... }:
|
outputs = { self, nixpkgs, nixos-hardware, ... }:
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ Below is an annoated flake example to create the initial boot image.
|
|||||||
disko.url = "github:nix-community/disko";
|
disko.url = "github:nix-community/disko";
|
||||||
disko.inputs.nixpkgs.follows = "nixpkgs";
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
|
nixos-hardware.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||||
nixpkgs-unfree.url = "github:numtide/nixpkgs-unfree/nixos-unstable";
|
nixpkgs-unfree.url = "github:numtide/nixpkgs-unfree/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,7 +4,10 @@ Create and configure the `flake.nix` file:
|
|||||||
``` nix
|
``` nix
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
inputs.nixos-hardware.url = "github:nixos/nixos-hardware";
|
inputs.nixos-hardware = {
|
||||||
|
url = "github:nixos/nixos-hardware";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
# Some dependencies of this flake are not yet available on non linux systems
|
# Some dependencies of this flake are not yet available on non linux systems
|
||||||
inputs.systems.url = "github:nix-systems/x86_64-linux";
|
inputs.systems.url = "github:nix-systems/x86_64-linux";
|
||||||
|
|||||||
Reference in new issue
Block a user