feat: add haskell tools
This commit is contained in:
parent
ae9754a466
commit
c5f0d28b71
4 changed files with 21 additions and 5 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -35,11 +35,11 @@
|
||||||
},
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1605370193,
|
"lastModified": 1610051610,
|
||||||
"narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=",
|
"narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "5021eac20303a61fafe17224c087f5519baed54d",
|
"rev": "3982c9903e93927c2164caa727cd3f6a0e6d14cc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -10,6 +10,11 @@
|
||||||
|
|
||||||
inputs.nur.url = "github:nix-community/NUR/master";
|
inputs.nur.url = "github:nix-community/NUR/master";
|
||||||
|
|
||||||
|
inputs.obelisk = {
|
||||||
|
url = "github:obsidiansystems/obelisk";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
inputs.pre-commit-hooks = {
|
inputs.pre-commit-hooks = {
|
||||||
url =
|
url =
|
||||||
# "github:Myhlamaeus/pre-commit-hooks.nix/feat/flake";
|
# "github:Myhlamaeus/pre-commit-hooks.nix/feat/flake";
|
||||||
|
@ -17,7 +22,8 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
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
|
let
|
||||||
overlays = {
|
overlays = {
|
||||||
deconz = self: super: {
|
deconz = self: super: {
|
||||||
|
@ -26,6 +32,9 @@
|
||||||
# with python{version}Packages.callPackage pydeconz { }
|
# with python{version}Packages.callPackage pydeconz { }
|
||||||
pydeconz = ./pkgs/pydeconz;
|
pydeconz = ./pkgs/pydeconz;
|
||||||
};
|
};
|
||||||
|
obelisk = self: super: {
|
||||||
|
obelisk = (import obelisk { inherit (self) system; }).command;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
systemModule = { hostName, hardwareConfig, config }:
|
systemModule = { hostName, hardwareConfig, config }:
|
||||||
({ pkgs, ... }: {
|
({ pkgs, ... }: {
|
||||||
|
@ -37,7 +46,7 @@
|
||||||
|
|
||||||
nix.registry.nixpkgs.flake = nixpkgs;
|
nix.registry.nixpkgs.flake = nixpkgs;
|
||||||
|
|
||||||
nixpkgs.overlays = [ nur.overlay overlays.deconz ];
|
nixpkgs.overlays = [ nur.overlay overlays.deconz overlays.obelisk ];
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[ hardwareConfig home-manager.nixosModules.home-manager config ];
|
[ hardwareConfig home-manager.nixosModules.home-manager config ];
|
||||||
|
|
|
@ -60,6 +60,9 @@
|
||||||
|
|
||||||
# development
|
# development
|
||||||
haskellPackages.ghc
|
haskellPackages.ghc
|
||||||
|
haskellPackages.cabal-install
|
||||||
|
stack
|
||||||
|
obelisk
|
||||||
postman
|
postman
|
||||||
|
|
||||||
# entertainment
|
# entertainment
|
||||||
|
|
|
@ -13,4 +13,8 @@
|
||||||
dates = "10:00";
|
dates = "10:00";
|
||||||
options = "--delete-older-than 30d";
|
options = "--delete-older-than 30d";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.binaryCaches = [ "https://nixcache.reflex-frp.org" ];
|
||||||
|
nix.binaryCachePublicKeys =
|
||||||
|
[ "ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue