-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
101 lines (93 loc) · 2.78 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
{
description = "The Hive - The secretly open NixOS-Society";
inputs = {
std.url = "github:divnix/std";
std.inputs.nixpkgs.follows = "nixpkgs";
std.inputs.devshell.follows = "devshell";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
std-data-collection.url = "github:divnix/std-data-collection";
std-data-collection.inputs.std.follows = "std";
std-data-collection.inputs.nixpkgs.follows = "nixpkgs";
devshell.url = "github:numtide/devshell";
};
# for packages
inputs = {
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
emacs-overlay.url = "github:nix-community/emacs-overlay";
};
outputs = {
std,
self,
...
} @ inputs:
std.growOn {
inherit inputs;
cellsFrom = ./nix;
cellBlocks = with std.blockTypes; [
# reusable software
{
name = "sources";
type = "nvfetcher";
actions = {
currentSystem,
target,
inputs,
fragment,
fragmentRelPath,
}: [
{
name = "update";
description = "Update generated nix expression";
command = inputs.nixpkgs.legacyPackages.${currentSystem}.writeShellScript "sources-update" ''
${inputs.nixpkgs.legacyPackages.${currentSystem}.nvfetcher}/bin/nvfetcher --config $(nix build ${builtins.unsafeDiscardStringContext target.drvPath} --no-link --print-out-paths) --build-dir $PRJ_ROOT/_sources/
'';
}
];
}
(installables "packages")
# modules implement
(functions "modules")
(functions "hm-modules")
# devshells can be entered
(devshells "devshells")
];
nixpkgsConfig = {
allowUnfree = true;
};
}
# soil
{
packages = std.harvest self [
["autofirma" "packages"]
["chromium" "packages"]
["emacs" "packages"]
["firefox" "packages"]
["keyd" "packages"]
["kodi" "packages"]
["lieer" "packages"]
["minisatip" "packages"]
["plex" "packages"]
["plex-desktop" "packages"]
["river" "packages"]
["sway" "packages"]
["swhkd" "packages"]
["tvheadend" "packages"]
["webgrabplus" "packages"]
["widevine" "packages"]
["acestream" "packages"]
["yggdrasil" "packages"]
];
nixosModules = std.harvest self [
["minisatip" "modules"]
["keyd" "modules"]
["swhkd" "modules"]
["tvheadend" "modules"]
["webgrabplus" "modules"]
];
homeModules = std.harvest self [
["river" "hm-modules"]
["swhkd" "hm-modules"]
];
devShells = std.harvest self ["_automation" "devshells"];
};
}