-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathflake.nix
157 lines (125 loc) · 4.09 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
{
description = "gvolpe's Home Manager & NixOS configurations";
nixConfig = {
extra-substituters = [
"https://cache.nixos.org"
"https://cache.garnix.io"
];
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
};
inputs = {
#nixpkgs.url = "nixpkgs/nixos-unstable";
# nix doesn't need the full history, this should be the default ¯\_(ツ)_/¯
nixpkgs.url = "git+https://github.com/NixOS/nixpkgs?shallow=1&ref=nixos-unstable";
#nixpkgs.url = github:gvolpe/nixpkgs/branch-name;
flake-schemas.url = github:DeterminateSystems/flake-schemas;
# https://github.com/NixOS/nixpkgs/commit/c3160517fc6381f86776795e95c97b8ef7b5d2e4
nixpkgs-mega.url = "nixpkgs/c3160517fc6381f86776795e95c97b8ef7b5d2e4";
# https://github.com/NixOS/nixpkgs/issues/322970
nixpkgs-zoom.url = "nixpkgs/24.05";
## nix client with schema support: see https://github.com/NixOS/nix/pull/8892
nix-schema = {
url = github:DeterminateSystems/nix-src/flake-schemas;
inputs.flake-schemas.follows = "flake-schemas";
};
rycee-nurpkgs = {
url = gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons;
inputs.nixpkgs.follows = "nixpkgs";
};
nurpkgs.url = github:nix-community/NUR;
home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-flake = {
#url = git+file:///home/gvolpe/workspace/neovim-flake;
url = github:gvolpe/neovim-flake;
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-schemas.follows = "flake-schemas";
};
nix-index-database = {
url = github:nix-community/nix-index-database;
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index = {
url = github:gvolpe/nix-index;
inputs.nix-index-database.follows = "nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
# Hyprland
hypr-binds-flake = {
url = github:hyprland-community/hypr-binds;
inputs.nixpkgs.follows = "nixpkgs";
};
# Fish shell
fish-bobthefish-theme = {
url = github:gvolpe/theme-bobthefish;
flake = false;
};
fish-keytool-completions = {
url = github:ckipp01/keytool-fish-completions;
flake = false;
};
# Github Markdown ToC generator
gh-md-toc = {
url = github:ekalinin/github-markdown-toc;
flake = false;
};
# Fast nix search client
nix-search = {
url = github:diamondburned/nix-search;
inputs.nixpkgs.follows = "nixpkgs";
};
# Nix linter
fenix = {
url = github:nix-community/fenix;
inputs.nixpkgs.follows = "nixpkgs";
};
statix = {
url = github:nerdypepper/statix;
inputs.fenix.follows = "fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Miscelaneous
cowsay = {
url = github:snowfallorg/cowsay;
inputs.nixpkgs.follows = "nixpkgs";
};
# Firefox style
penguin-fox = {
url = github:p3nguin-kun/penguinFox;
flake = false;
};
};
outputs = inputs @ { self, ... }:
let
system = "x86_64-linux";
overlays = import ./lib/overlays.nix { inherit inputs system; };
pkgs = import inputs.nixpkgs {
inherit overlays system;
config.allowUnfree = true;
};
neovim = self.homeConfigurations.hyprland-hdmi.config.programs.neovim-ide.finalPackage;
in
{
homeConfigurations = pkgs.builders.mkHome { };
nixosConfigurations = pkgs.builders.mkNixos { };
out = { inherit pkgs overlays; };
schemas =
inputs.flake-schemas.schemas //
import ./lib/schemas.nix { inherit (inputs) flake-schemas; };
apps.${system}."nix" = {
type = "app";
program = "${pkgs.nix-schema}/bin/nix-schema";
};
packages.${system} = {
inherit neovim;
inherit (pkgs) bazecor quickemu metals metals-updater;
# crappy software I need for $work
inherit (pkgs) globalprotect-openconnect slack zoom-us;
};
};
}