-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
117 lines (95 loc) · 2.66 KB
/
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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
description = "dotfyls";
inputs = {
devenv.url = "github:cachix/devenv";
devenv-root = {
url = "file+file:///dev/null";
flake = false;
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nix2container = {
url = "github:nlewo/nix2container";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
persistwd = {
url = "gitlab:xarvex/persistwd";
inputs = {
devenv.follows = "devenv";
flake-parts.follows = "flake-parts";
nix2container.follows = "nix2container";
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
};
};
systems.url = "github:nix-systems/default";
wherenver = {
url = "gitlab:xarvex/wherenver";
inputs = {
devenv.follows = "devenv";
flake-parts.follows = "flake-parts";
nix2container.follows = "nix2container";
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
};
};
yubigen = {
url = "gitlab:xarvex/yubigen";
inputs = {
devenv.follows = "devenv";
flake-parts.follows = "flake-parts";
nix2container.follows = "nix2container";
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
};
};
};
outputs =
inputs@{
flake-parts,
nixpkgs,
self,
...
}:
let
inherit (nixpkgs) lib;
in
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.devenv.flakeModule ];
systems = import inputs.systems;
perSystem =
{ pkgs, ... }:
{
packages = import ./packages { inherit pkgs; };
devenv.shells = import ./devenv { inherit inputs lib pkgs; };
formatter = pkgs.nixfmt-rfc-style;
};
flake = {
inherit (import ./modules { inherit inputs lib self; })
nixosConfigurations
homeConfigurations
nixosModules
homeManagerModules
;
overlays = import ./overlays { inherit lib self; };
templates = import ./templates;
lib = import ./lib { inherit lib; };
};
};
}