-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
flake.nix
31 lines (28 loc) · 813 Bytes
/
flake.nix
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
{
description = "A customizable and extensible shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {
nixpkgs,
self,
}: let
version = builtins.replaceStrings ["\n"] [""] (builtins.readFile ./version);
genSystems = nixpkgs.lib.genAttrs [
"aarch64-linux"
"x86_64-linux"
];
pkgs = genSystems (system: import nixpkgs {inherit system;});
in {
packages = genSystems (system: rec {
default = pkgs.${system}.callPackage ./nix {inherit version;};
ags = default;
agsWithTypes = default; # for backwards compatibility
agsNoTypes = pkgs.${system}.callPackage ./nix {
inherit version;
buildTypes = false;
};
});
homeManagerModules.default = import ./nix/hm-module.nix self;
};
}