flake: use explicit input format

And reorder the inputs to be in alphabetical order, because that is
always neater :-).
This commit is contained in:
Bruno BELANYI 2021-04-25 15:50:57 +00:00
parent f64454811e
commit 0ec56784e9
2 changed files with 34 additions and 6 deletions

View file

@ -11,6 +11,7 @@
}, },
"original": { "original": {
"owner": "numtide", "owner": "numtide",
"ref": "master",
"repo": "flake-utils", "repo": "flake-utils",
"type": "github" "type": "github"
} }
@ -31,6 +32,7 @@
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "master",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -62,6 +64,7 @@
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "master",
"repo": "NUR", "repo": "NUR",
"type": "github" "type": "github"
} }

View file

@ -1,14 +1,39 @@
{ {
description = "NixOS configuration with flakes"; description = "NixOS configuration with flakes";
inputs = { inputs = {
home-manager.url = "github:nix-community/home-manager"; futils = {
home-manager.inputs.nixpkgs.follows = "nixpkgs"; type = "github";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; owner = "numtide";
nur.url = "github:nix-community/NUR"; repo = "flake-utils";
futils.url = "github:numtide/flake-utils"; ref = "master";
};
home-manager = {
type = "github";
owner = "nix-community";
repo = "home-manager";
ref = "master";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
};
nur = {
type = "github";
owner = "nix-community";
repo = "NUR";
ref = "master";
};
}; };
outputs = { self, nixpkgs, nur, home-manager, futils } @ inputs: outputs = { self, futils, home-manager, nixpkgs, nur } @ inputs:
let let
inherit (futils.lib) eachDefaultSystem; inherit (futils.lib) eachDefaultSystem;