-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathflake.nix
More file actions
45 lines (39 loc) · 1.17 KB
/
Copy pathflake.nix
File metadata and controls
45 lines (39 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
description = "HEX local-first voice dictation";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ self, nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
hex = pkgs.callPackage ./nix/package.nix { };
in
{
packages.${system} = {
inherit hex;
default = hex;
};
overlays.default = final: _prev: {
hex = final.callPackage ./nix/package.nix { };
};
nixosModules.hex = {
imports = [ ./nix/module.nix ];
programs.hex.package = nixpkgs.lib.mkDefault hex;
};
nixosModules.default = self.nixosModules.hex;
homeManagerModules.hex = {
imports = [ ./nix/hm-module.nix ];
programs.hex.package = nixpkgs.lib.mkDefault hex;
};
homeManagerModules.default = self.homeManagerModules.hex;
devShells.${system}.default = hex.devShell;
checks.${system} = import ./nix/checks.nix { inherit self pkgs; };
formatter.${system} = pkgs.nixfmt;
};
}