mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
Merge pull request #1896 from Malix-Labs/docs-flake-input
treewide: enhance flake inputs
This commit is contained in:
9 files changed
+43
-17
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/master";
|
|
||||||
|
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
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Configuration for the ScreenPad is unable to be provided here at this time, due
|
|||||||
inputs = {
|
inputs = {
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
url = "github:NixOS/nixpkgs/nixos-unstable";
|
url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||||
};
|
};
|
||||||
|
|
||||||
screenpad-driver={
|
screenpad-driver={
|
||||||
|
|||||||
@@ -10,8 +10,11 @@ To create an initial SD card image for installation:
|
|||||||
# flake.nix
|
# flake.nix
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||||
nixos-hardware.url = "github:nixos/nixos-hardware/master";
|
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 {
|
||||||
@@ -80,8 +83,11 @@ flake:
|
|||||||
# flake.nix
|
# flake.nix
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||||
nixos-hardware.url = "github:nixos/nixos-hardware/master";
|
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 {
|
||||||
|
|||||||
@@ -5,8 +5,11 @@ Create and customize a `flake.nix` file:
|
|||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||||
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, ... }:
|
||||||
|
|||||||
@@ -5,8 +5,11 @@
|
|||||||
Create and configure the `flake.nix` file:
|
Create and configure the `flake.nix` file:
|
||||||
``` nix
|
``` nix
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||||
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, ... }:
|
||||||
|
|||||||
@@ -4,8 +4,11 @@ Create and configure the `flake.nix` file:
|
|||||||
|
|
||||||
``` nix
|
``` nix
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||||
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, ... }:
|
||||||
|
|||||||
+2
-1
@@ -40,7 +40,8 @@ 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";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
nixos-hardware.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||||
nixpkgs-unfree.url = "github:numtide/nixpkgs-unfree/nixos-unstable";
|
nixpkgs-unfree.url = "github:numtide/nixpkgs-unfree/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,11 @@
|
|||||||
Create and configure the `flake.nix` file:
|
Create and configure the `flake.nix` file:
|
||||||
``` nix
|
``` nix
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||||
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";
|
||||||
|
|||||||
+2
-2
@@ -2,8 +2,8 @@
|
|||||||
description = "Private dev inputs for nixos-hardware";
|
description = "Private dev inputs for nixos-hardware";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixos-unstable-small.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
nixos-unstable-small.url = "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz";
|
||||||
nixos-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixos-stable.url = "https://channels.nixos.org/nixos-25.11/nixexprs.tar.xz";
|
||||||
treefmt-nix.url = "github:numtide/treefmt-nix";
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
||||||
treefmt-nix.inputs.nixpkgs.follows = "nixos-unstable-small";
|
treefmt-nix.inputs.nixpkgs.follows = "nixos-unstable-small";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user