-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
34 lines (27 loc) · 900 Bytes
/
Copy pathflake.nix
File metadata and controls
34 lines (27 loc) · 900 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
30
31
32
33
34
{
description = "fazzi's NixOS config";
outputs =
{ self }:
let
inputs = import ./.tack;
inherit (inputs.nixpkgs) lib;
inherit (lib) packagesFromDirectoryRecursive callPackageWith;
# all my systems are x86_64-linux
system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system};
in
{
# our internal lib which has some generators and useful funcs
lib = import ./lib { inherit lib inputs; };
nixosModules.default = self.lib.listRecursive ./modules;
# hosts are configured in here
nixosConfigurations = import ./hosts {
inherit self inputs lib;
};
packages.${system} = packagesFromDirectoryRecursive {
callPackage = callPackageWith (pkgs // self.packages.${system});
directory = ./pkgs;
};
formatter.${system} = pkgs.callPackage ./fmt.nix { };
};
}