-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
69 lines (62 loc) · 1.71 KB
/
flake.nix
File metadata and controls
69 lines (62 loc) · 1.71 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
{
inputs = {
nixpkgs.url = "github:ExpidusOS/nixpkgs/expidus";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
systems.url = "github:nix-systems/default-linux";
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
nixos-hardware.url = "github:NixOS/nixos-hardware";
};
nixConfig = {
extra-substituters = [ "https://cosmic.cachix.org/" ];
extra-trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
};
outputs =
{
self,
nixpkgs,
flake-parts,
systems,
nixos-cosmic,
nixos-hardware,
...
}@inputs:
flake-parts.lib.mkFlake { inherit inputs; } (
{ inputs, ... }:
{
systems = import inputs.systems;
imports = [
inputs.flake-parts.flakeModules.flakeModules
./flake-modules/default.nix
];
flake = {
flakeModules.default = ./flake-modules/default.nix;
nixosModules.default = ./nixos-modules/default.nix;
overlays.default = import ./pkgs/default.nix;
};
perSystem =
{
system,
config,
pkgs,
inputs',
...
}:
{
_module.args.pkgs = import inputs.nixpkgs {
localSystem = { inherit system; };
overlays = [
inputs.nixos-cosmic.overlays.default
(import ./pkgs/default.nix)
];
config = { };
inherit (inputs'.nixpkgs) lib;
};
legacyPackages = pkgs;
packages = config.expidus.build;
};
}
);
}