-
Notifications
You must be signed in to change notification settings - Fork 240
Expand file tree
/
Copy pathflake.nix
More file actions
29 lines (26 loc) · 793 Bytes
/
flake.nix
File metadata and controls
29 lines (26 loc) · 793 Bytes
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
{
description = "spank - Yells 'ow!' when you slap the laptop";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
let
# Home Manager module available regardless of system
hmModule = import ./nix/hm-module.nix self;
in
flake-utils.lib.eachSystem [ "aarch64-darwin" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.callPackage ./nix/package.nix { };
devShells.default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.default ];
};
}
) // {
homeManagerModules.default = hmModule;
homeManagerModule = hmModule;
};
}