forked from gvolpe/nix-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
140 lines (111 loc) · 3.66 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
{
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";
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";
};
};
outputs = inputs @ { self, nixpkgs, ... }:
let
system = "x86_64-linux";
overlays = import ./lib/overlays.nix { inherit inputs system; };
pkgs = import 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; };
packages.${system} = {
inherit neovim;
inherit (pkgs) bazecor quickemu metals metals-updater;
# crappy software I need for $work
inherit (pkgs) globalprotect-openconnect slack zoom-us-old zoom-latest;
};
};
}