-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
92 lines (86 loc) · 2.68 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
{
description = "Flamework 3";
nixConfig = {
# https://github.com/A1ca7raz/nurpkgs/blob/main/config.nix
extra-substituters = [
"https://cache.garnix.io"
"https://a1ca7raz-nur.cachix.org"
];
extra-trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"a1ca7raz-nur.cachix.org-1:twTlSh62806B8lfG0QQzge4l5srn9Z8/xxyAFauOZnQ="
];
};
inputs = {
# Use inputs from my NUR flake
nur.url = "github:A1ca7raz/nurpkgs";
nixpkgs.follows = "nur/nixpkgs";
flake-utils.follows = "nur/flake-utils";
flake-compat.follows = "nur/flake-compat";
# NixosModule Flakes
colmena = {
url = "github:zhaofengli/colmena";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-compat.follows = "flake-compat";
inputs.flake-utils.follows = "flake-utils";
};
dns = {
url = "github:nix-community/dns.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
# disko = {
# url = "github:nix-community/disko";
# inputs.nixpkgs.follows = "nixpkgs";
# };
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
lanzaboote.follows = "nur/lanzaboote";
sops-nix.follows = "nur/sops-nix";
spicetify-nix.follows = "nur/spicetify-nix";
nix-index-database.follows = "nur/nix-index-database";
};
outputs = inputs@{ self, nixpkgs, flake-utils, ... }:
let
SYSTEM = [ "x86_64-linux" ];
utils = import ./utils self;
in flake-utils.lib.eachSystem SYSTEM (system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
overlays = [
inputs.nur.overlays.default
inputs.nur.overlays.nixpaks
utils.overlays.pkgs
];
};
in {
formatter = pkgs.nixpkgs-fmt;
devShells.default = with pkgs; mkShell {
nativeBuildInputs = [
colmena
flameworkPackages.deploykit
];
};
packages = utils.packages pkgs;
}
) // {
nixosModules = utils.modules // (with inputs; {
sops = sops-nix.nixosModules.sops;
impermanence = impermanence.nixosModules.impermanence;
home = home-manager.nixosModules.home-manager;
lanzaboote = lanzaboote.nixosModules.lanzaboote;
nur = inputs.nur.nixosModule;
});
inherit (utils) overlays;
nixosConfigurations = utils.profiles.nixosConfigurations;
colmena = utils.profiles.colmena;
inherit utils;
};
}