-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
108 lines (98 loc) · 3.35 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
{
description = "NixOS configuration";
inputs = {
nixos.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-update.url = "github:nix-community/nixpkgs-update";
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
neorg-overlay.url = "github:nvim-neorg/nixpkgs-neorg-overlay";
sops-nix.url = "github:Mic92/sops-nix";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
fenix.url = "github:nix-community/fenix";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nur.url = "github:nix-community/NUR";
pianoteq.url = "github:purepani/pianoteq.nix";
musnix.url = "github:purepani/musnix";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
authentik-nix. url = "github:nix-community/authentik-nix";
nixvim = {
url = "github:nix-community/nixvim";
#url = "github:PerchunPak/nixvim/fix-python-lsp-plugins";
inputs.nixpkgs.follows = "nixpkgs";
};
std.url = "github:divnix/std";
std.inputs.nixpkgs.follows = "nixpkgs";
#hive.url = "github:whs-dot-hk/hive/remove-nixpkgs-config";
colmena.url = "github:zhaofengli/colmena";
colmena.inputs.nixpkgs.follows = "nixpkgs";
hive.url = "github:divnix/hive";
hive.inputs.nixpkgs.follows = "nixpkgs";
hive.inputs.colmena.follows = "colmena";
hive.inputs.colmena.inputs.nixpkgs.follows = "nixpkgs";
haumea.url = "github:nix-community/haumea";
std.inputs.devshell.url = "github:numtide/devshell";
plugin-nvim-lilypond-suite = {
url = "github:martineausimon/nvim-lilypond-suite";
flake = false;
};
};
outputs =
inputs @ { std
, hive
, self
, ...
}:
let
lib = inputs.nixpkgs.lib // builtins;
in
hive.growOn
{
inherit inputs;
systems = [
"x86_64-linux"
];
cellsFrom = ./comb;
nixpkgsConfig.allowUnfreePredicate = pkg:
lib.elem (lib.getName pkg) [
"reaper"
"zoom"
"slack"
"discord-canary"
];
cellBlocks = with std.blockTypes;
with hive.blockTypes; [
nixosConfigurations
homeConfigurations
colmenaConfigurations
(functions "nixosProfiles")
(functions "homeProfiles")
(functions "hardwareProfiles")
#(installables "package")
#(functions "module")
(functions "neovim")
(functions "nixosModules")
(functions "nixpkgs")
(installables "packages")
(devshells "devshells")
];
}
{
devShells = hive.harvest self [ "repo" "devshells" ];
}
{
nixosConfigurations = hive.collect self "nixosConfigurations";
homeConfigurations = hive.collect self "homeConfigurations";
colmenaHive = hive.collect self "colmenaConfigurations";
packages = std.harvest self [ "satwik" "packages" ];
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
};
}