feat: add haskell tools

This commit is contained in:
Felix Schröter 2021-01-16 17:52:54 +01:00
parent ae9754a466
commit c5f0d28b71
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
4 changed files with 21 additions and 5 deletions

View file

@ -10,6 +10,11 @@
inputs.nur.url = "github:nix-community/NUR/master";
inputs.obelisk = {
url = "github:obsidiansystems/obelisk";
flake = false;
};
inputs.pre-commit-hooks = {
url =
# "github:Myhlamaeus/pre-commit-hooks.nix/feat/flake";
@ -17,7 +22,8 @@
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, home-manager, nur, pre-commit-hooks }:
outputs = { self, nixpkgs, flake-utils, home-manager, nur, obelisk
, pre-commit-hooks }:
let
overlays = {
deconz = self: super: {
@ -26,6 +32,9 @@
# with python{version}Packages.callPackage pydeconz { }
pydeconz = ./pkgs/pydeconz;
};
obelisk = self: super: {
obelisk = (import obelisk { inherit (self) system; }).command;
};
};
systemModule = { hostName, hardwareConfig, config }:
({ pkgs, ... }: {
@ -37,7 +46,7 @@
nix.registry.nixpkgs.flake = nixpkgs;
nixpkgs.overlays = [ nur.overlay overlays.deconz ];
nixpkgs.overlays = [ nur.overlay overlays.deconz overlays.obelisk ];
imports =
[ hardwareConfig home-manager.nixosModules.home-manager config ];