-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
169 lines (164 loc) · 5.99 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# --- flake.nix
#
# Author: tsandrini <[email protected]>
# URL: https://github.com/tsandrini/tensorfiles
# License: MIT
#
# 888 .d888 d8b 888
# 888 d88P" Y8P 888
# 888 888 888
# 888888 .d88b. 88888b. .d8888b .d88b. 888d888 888888 888 888 .d88b. .d8888b
# 888 d8P Y8b 888 "88b 88K d88""88b 888P" 888 888 888 d8P Y8b 88K
# 888 88888888 888 888 "Y8888b. 888 888 888 888 888 888 88888888 "Y8888b.
# Y88b. Y8b. 888 888 X88 Y88..88P 888 888 888 888 Y8b. X88
# "Y888 "Y8888 888 888 88888P' "Y88P" 888 888 888 888 "Y8888 88888P'
{
description = "tsandrini's fully covariant tensorfiles";
inputs = {
# --- BASE DEPENDENCIES ---
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# TODO wezterm rendering bug https://github.com/NixOS/nixpkgs/issues/336069
nixpkgs-wezterm.url = "github:nixos/nixpkgs?rev=d04953086551086b44b6f3c6b7eeb26294f207da";
flake-parts.url = "github:hercules-ci/flake-parts";
# --- YOUR DEPENDENCIES ---
systems.url = "github:nix-systems/default";
treefmt-nix.url = "github:numtide/treefmt-nix";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
# inputs.nixpkgs.follows = "nixpkgs";
};
nix-topology.url = "github:oddlama/nix-topology";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
nixGL = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs-overlay.url = "github:nix-community/emacs-overlay";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
deploy-rs.url = "github:serokell/deploy-rs";
impermanence.url = "github:nix-community/impermanence";
nur.url = "github:nix-community/NUR";
arkenfox-user-js = {
url = "github:arkenfox/user.js";
flake = false;
};
betterfox = {
url = "github:yokoffing/Betterfox";
flake = false;
};
nixpkgs-wayland = {
url = "github:nix-community/nixpkgs-wayland";
# nixpkgs-wayland.inputs.nixpkgs.follows = "nixpkgs";
};
nix-alien.url = "github:thiagokokada/nix-alien";
# TODO some serious maintenance sheningans
shadow-nix = {
url = "github:tsandrini/shadow-nix";
flake = false;
};
plasma-manager = {
url = "github:pjones/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
nix-gaming.url = "github:fufexan/nix-gaming";
nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
vpsadminos = {
url = "github:vpsfreecz/vpsadminos";
flake = false;
};
# neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
# kitty-scrollback-nvim = {
# url = "github:mikesmithgh/kitty-scrollback.nvim";
# flake = false;
# };
# spicetify-nix = {
# url = "github:the-argus/spicetify-nix";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# Fingreprint sensor
# nixos-06cb-009a-fingerprint-sensor = {
# url = "github:ahbnr/nixos-06cb-009a-fingerprint-sensor";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# hyprland = {
# url = "github:hyprwm/Hyprland";
# #inputs.nixpkgs.follows = "nixpkgs";
# };
# anyrun = {
# url = "github:Kirottu/anyrun";
# #inputs.nixpkgs.follows = "nixpkgs";
# };
# ags = {
# url = "github:Aylur/ags";
# #inputs.nixpkgs.follows = "nixpkgs";
# };
};
# NOTE Here you can add additional binary cache substituers that you trust.
# There are also some sensible default caches commented out that you
# might consider using.
nixConfig = {
extra-substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org/"
"https://tsandrini.cachix.org"
"https://nixpkgs-wayland.cachix.org"
"https://nix-gaming.cachix.org"
# "https://hyprland.cachix.org"
# "https://anyrun.cachix.org"
# "https://devenv.cachix.org"
];
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"tsandrini.cachix.org-1:t0AzIUglIqwiY+vz/WRWXrOkDZN8TwY3gk+n+UDt4gw="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
# "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
# "anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
# "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
];
};
outputs =
inputs@{ flake-parts, ... }:
let
inherit (inputs.nixpkgs) lib;
inherit (import ./flake-parts/_bootstrap.nix { inherit lib; }) loadParts;
in
flake-parts.lib.mkFlake { inherit inputs; } {
# We recursively traverse all of the flakeModules in ./flake-parts and
# import only the final modules, meaning that you can have an arbitrary
# nested structure that suffices your needs. For example
#
# - ./flake-parts
# - modules/
# - nixos/
# - myNixosModule1.nix
# - myNixosModule2.nix
# - default.nix
# - home-manager/
# - myHomeModule1.nix
# - myHomeModule2.nix
# - default.nix
# - sharedModules.nix
# - pkgs/
# - myPackage1.nix
# - myPackage2.nix
# - default.nix
# - mySimpleModule.nix
# - _not_a_module.nix
imports = loadParts ./flake-parts;
};
}