From daf9133c35ee2d2ec78e625b96fbd79dd39e6608 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Sat, 7 Nov 2020 23:01:15 -0800 Subject: [PATCH] add nur --- configuration.nix | 8 +++++++- flake.lock | 18 +++++++++++++++++- flake.nix | 4 +++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index bc5fc56..0783363 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, lib, modulesPath, ... }: +{ config, pkgs, lib, modulesPath, inputs, ... }: { @@ -13,5 +13,11 @@ services.sshd.enable = true; networking.hostName = "mysystem"; + + nixpkgs.overlays = [ inputs.nur.overlay ]; + + environment.systemPackages = with pkgs; [ + pkgs.nur.repos.mic92.hello-nur + ]; } diff --git a/flake.lock b/flake.lock index e302a0b..b0475a3 100644 --- a/flake.lock +++ b/flake.lock @@ -16,9 +16,25 @@ "type": "github" } }, + "nur": { + "locked": { + "lastModified": 1604808696, + "narHash": "sha256-yJRRZEBzvfuDUMarWCbD6ehZd1u3rHqA9nK3OJOE30s=", + "owner": "nix-community", + "repo": "NUR", + "rev": "3189c40da661eefc0c604f7f50df4956cf542a25", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "NUR", + "type": "github" + } + }, "root": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "nur": "nur" } } }, diff --git a/flake.nix b/flake.nix index e0a0297..1448eb9 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ inputs = { nixpkgs = { url = "github:nixos/nixpkgs/nixos-unstable"; }; + nur = { url = "github:nix-community/NUR"; }; }; outputs = inputs: @@ -17,7 +18,8 @@ (import ./configuration.nix) /* ignore */ ignoreme # ignore this; don't include it; it is a small helper for this example - ]; + ]; + specialArgs = { inherit inputs; }; }; }; };