flake: add NUR overlay

This commit is contained in:
Bruno BELANYI 2021-02-05 16:43:30 +01:00
parent 49779cac21
commit 4d68a706a3
2 changed files with 20 additions and 2 deletions

View file

@ -16,9 +16,25 @@
"type": "github"
}
},
"nur": {
"locked": {
"lastModified": 1612513831,
"narHash": "sha256-Ma1l+wgplQDvcffE9llq2eQr8//xmR650StuciRQVns=",
"owner": "nix-community",
"repo": "NUR",
"rev": "e7ee315a84eef33a6d5975ce50a7697f05ae83fa",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nur": "nur"
}
}
},

View file

@ -2,9 +2,10 @@
description = "Nixos configuration with flakes";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR";
};
outputs = { self, nixpkgs }: {
outputs = { self, nixpkgs, nur }: {
nixosConfigurations.porthos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
@ -17,6 +18,7 @@
then self.rev
else throw "Refusing to build from a dirty Git tree!";
})
{ nixpkgs.overlays = [ nur.overlay ]; }
./configuration.nix
];
};