-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
113 lines (108 loc) · 3 KB
/
flake.nix
File metadata and controls
113 lines (108 loc) · 3 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
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
{
description = "My NixOS configuration for my PC and laptop";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
#url = "/home/gep/nixpkgs";
};
nixpkgs-patcher = {
url = "github:gepbird/nixpkgs-patcher";
#url = "/home/gep/nixpkgs-patcher";
};
nixpkgs-patch-hytale-launcher = {
url = "https://github.com/NixOS/nixpkgs/pull/479368.diff";
flake = false;
};
nixpkgs-patch-packet-tracer-fix-mime = {
url = "https://github.com/NixOS/nixpkgs/pull/496181.diff";
flake = false;
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "";
};
dwm-gep = {
url = "git+https://git.tchfoo.com/gepbird/dwm";
inputs.nixpkgs.follows = "";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nvim-gep = {
url = "git+https://git.tchfoo.com/gepbird/nvim";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-patcher.follows = "";
inputs.flake-parts.follows = "flake-parts";
inputs.systems.follows = "systems";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "";
};
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "";
inputs.flake-parts.follows = "flake-parts";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "";
};
# dependencies of the above modules
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
systems = {
url = "github:nix-systems/default";
};
};
outputs =
inputs:
with inputs;
let
eachSystem =
function:
nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (
system: function (import nixpkgs { inherit system; })
);
treefmtEval = eachSystem (
pkgs:
treefmt-nix.lib.evalModule pkgs {
programs.nixfmt.enable = true;
}
);
in
{
nixosConfigurations =
let
mkSystem =
host:
nixpkgs-patcher.lib.nixosSystem {
modules = [ host ];
specialArgs = inputs;
};
in
{
geppc = mkSystem ./hosts/geppc;
geptop-xmg = mkSystem ./hosts/geptop-xmg;
gepvm = mkSystem ./hosts/gepvm;
};
inherit inputs;
lib = import ./lib.nix { };
nixosModules = import ./modules self;
formatter = eachSystem (pkgs: treefmtEval.${pkgs.stdenv.hostPlatform.system}.config.build.wrapper);
checks = eachSystem (pkgs: {
formatting = treefmtEval.${pkgs.system}.config.build.check self;
});
};
nixConfig = {
extra-substituters = [
"https://nix-cache.tchfoo.com"
];
extra-trusted-public-keys = [
"nix-cache.tchfoo.com-1:pWK4l0phRA3bE0CviZodEQ5mWAQYoiuVi2LML+VNtNY="
];
};
}