Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
67 lines (64 loc) · 2.11 KB
/
Copy pathflake.nix
File metadata and controls
67 lines (64 loc) · 2.11 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
{
description = "Marchyo";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Nix Cache Route Optimizer (services.ncro, on by default in modules/nixos/ncro.nix).
ncro = {
url = "github:manic-systems/ncro";
inputs.nixpkgs.follows = "nixpkgs";
};
# Base16 schemes, read at eval time as plain data (no IFD).
tinted-schemes = {
url = "github:tinted-theming/schemes";
flake = false;
};
# Declarative partitioning for the disko/ layouts.
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
};
nixConfig = {
extra-substituters = [
"https://jylhis.cachix.org"
"https://jylhis-extra.cachix.org"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"jylhis.cachix.org-1:SIAw5iWjXRhLAmejqPy0PGuqH6bjCHIFVF9CiHmHRpE="
"jylhis-extra.cachix.org-1:fG6wVx1e7AaS7vodJoR+0Lk2nhISY3NzGDMAZ2veXKk="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
outputs =
inputs@{ nixpkgs, ... }:
let
marchyo = import ./outputs.nix { inherit inputs; };
systems = import ./lib/systems.nix;
forAllSystems = nixpkgs.lib.genAttrs systems.linux;
in
{
inherit (marchyo)
nixosModules
homeManagerModules
nixosConfigurations
overlays
templates
lib
;
legacyPackages = forAllSystems marchyo.legacyPackages;
packages = forAllSystems (system: marchyo.mkPackages { inherit system; });
checks = forAllSystems (system: marchyo.mkChecks { inherit system; });
formatter = forAllSystems (system: marchyo.mkFormatter { inherit system; });
devShells = forAllSystems (system: marchyo.mkDevShells { inherit system; });
apps = nixpkgs.lib.genAttrs [ "x86_64-linux" ] (system: marchyo.mkApps { inherit system; });
};
}