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

6
flake.lock generated
View file

@ -35,11 +35,11 @@
},
"flake-utils": {
"locked": {
"lastModified": 1605370193,
"narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=",
"lastModified": 1610051610,
"narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5021eac20303a61fafe17224c087f5519baed54d",
"rev": "3982c9903e93927c2164caa727cd3f6a0e6d14cc",
"type": "github"
},
"original": {

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 ];

View file

@ -60,6 +60,9 @@
# development
haskellPackages.ghc
haskellPackages.cabal-install
stack
obelisk
postman
# entertainment

View file

@ -13,4 +13,8 @@
dates = "10:00";
options = "--delete-older-than 30d";
};
nix.binaryCaches = [ "https://nixcache.reflex-frp.org" ];
nix.binaryCachePublicKeys =
[ "ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" ];
}