summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-02-21 19:38:12 -0500
committerKjetil Orbekk <kj@orbekk.com>2021-02-21 19:38:12 -0500
commitd00ef791399d8316a8414fe4d0a29d42baef7b1f (patch)
treed7eb6077e424d64502d946ea0a7d083b79ccdfe7 /flake.nix
parentcadf8885acd613666905754e3911524566085cf6 (diff)
Update flake
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 371a36d..ed11cda 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,13 +1,14 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09";
- inputs.nixpkgs_unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
+ inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
+ inputs.nixos-hardware.url = github:NixOS/nixos-hardware/master;
# TODO: Remove nix overlay when pull request is resolved:
# https://github.com/NixOS/nix/pull/4566
inputs.nix.url = "github:orbekk/nix/master";
inputs.nix.inputs.nixpkgs.follows = "nixpkgs";
- outputs = { self, nixpkgs, nixpkgs_unstable, nix }:
+ outputs = { self, nixpkgs, nixpkgs-unstable, nix, nixos-hardware }:
{
nixosConfigurations = let
mkConfig = { hostName
@@ -19,6 +20,7 @@
modules =
[
module
+ nixpkgs.nixosModules.notDetected
({config, pkgs, ...}: {
# Let 'nixos-version --json' know about the Git revision
# of this flake.
@@ -27,7 +29,13 @@
nixpkgs.overlays = [
# Add unstable packages.
- (final: prev: { unstable = nixpkgs_unstable.legacyPackages."x86_64-linux"; })
+ (final: prev: {
+ my-extras = {
+ inherit nixpkgs;
+ inherit nixpkgs-unstable;
+ inherit nixos-hardware;
+ };
+ })
# For git+file support with bare repo.
nix.overlay
(final: prev: { nixFlakes = final.nix; })