-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
82 lines (76 loc) · 2.37 KB
/
flake.nix
File metadata and controls
82 lines (76 loc) · 2.37 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
description = "fazzi's NixOS config";
outputs = inputs @ {self, ...}: let
inherit (inputs.nixpkgs) lib;
inherit (lib) genAttrs packagesFromDirectoryRecursive callPackageWith fix;
pins = import ./npins;
# we only use x86_64-linux for now but this is good practice
supportedSystems = import inputs.systems;
forAllSystems = apply:
genAttrs
supportedSystems
(system: apply inputs.nixpkgs.legacyPackages.${system});
in {
# our internal lib which has some generators and useful funcs
lib = import ./lib {inherit lib inputs;};
# hosts are configured in here
nixosConfigurations = import ./hosts {
inherit self inputs pins lib;
};
# some of our pkgs depend on each other, so use fix and pass self through
packages = forAllSystems (pkgs:
fix (selfPkgs:
packagesFromDirectoryRecursive {
# pass through our npins sources
callPackage = callPackageWith (pkgs // selfPkgs // {inherit pins;});
directory = ./pkgs;
}));
formatter = forAllSystems (pkgs: pkgs.callPackage ./fmt.nix {});
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/x86_64-linux";
# my packages which are intended for public use are available here
azzipkgs = {
url = "gitlab:fazzi/azzipkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
hjem = {
url = "github:feel-co/hjem";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nix-darwin.follows = "";
};
hyprland = {
url = "github:hyprwm/Hyprland";
inputs = {
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
aquamarine.url = "github:gulafaran/aquamarine/commit";
};
};
nvf = {
url = "github:NotAShelf/nvf";
inputs = {
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
flake-compat.follows = "";
ndg.follows = "";
};
};
watt = {
url = "github:NotAShelf/watt";
inputs.nixpkgs.follows = "nixpkgs";
};
crane.url = "github:ipetkov/crane";
stash = {
url = "github:NotAShelf/stash";
inputs.nixpkgs.follows = "nixpkgs";
inputs.crane.follows = "crane";
};
tuigreet = {
url = "github:NotAShelf/tuigreet";
inputs.nixpkgs.follows = "nixpkgs";
inputs.crane.follows = "crane";
};
};
}