-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
171 lines (129 loc) · 6.87 KB
/
Copy pathflake.nix
File metadata and controls
171 lines (129 loc) · 6.87 KB
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
170
171
{
description = "Joshua's NixOS Flake";
outputs =
{ self, nixpkgs, ... }:
let
inherit (lib) ns;
inherit (lib.${ns}) forEachSystem mkHost mkDroidHost;
lib = nixpkgs.lib.extend (final: _: import ./lib self final "JManch");
in
{
templates = import ./templates;
# Use legacyPackages as our packages contain nested attrsets which are
# not supported by `nix flake check`
legacyPackages = forEachSystem lib.${ns}.flakePackages;
formatter = forEachSystem (pkgs: pkgs.nixfmt-tree);
nixosConfigurations = lib.listToAttrs [
(mkHost "ncase-m1" "joshua" "x86_64-linux" [ ])
(mkHost "framework" "joshua" "x86_64-linux" [ ])
(mkHost "homelab" "joshua" "x86_64-linux" [ ])
(mkHost "msi" (lib.elemAt self.inputs.nix-resources.secrets.usernames 0) "x86_64-linux" [ ])
# (mkHost "pi-3" "joshua" "aarch64-linux" [ ])
# (mkHost "surface-pro" "joshua" "x86_64-linux" [ ])
];
nixOnDroidConfigurations = lib.listToAttrs [
(mkDroidHost "pixel-9")
];
};
# To use a local flake as an input set url to "git+file://<PATH>"
# To use a nixpkgs PR as an input set url to "github:NixOS/nixpkgs?ref=pull/<PR_NUMBER>/head"
# To identify which inputs are causing evaluation warnings use NIX_ABORT_ON_WARN=1
# with the --impure flag and inspect the stack trace
# When locking a flake to a rev, it's important to manually run `nix flake
# update <input>`; otherwise, the inputs of the locked flake will not be
# updated https://github.com/NixOS/nix/issues/7860
inputs = {
# Critical inputs that provide imported NixOS modules or overlays. Ideally
# should review changes after updating.
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
impermanence.url = "github:nix-community/impermanence";
impermanence.inputs.nixpkgs.follows = "nixpkgs";
impermanence.inputs.home-manager.follows = "home-manager";
vpn-confinement.url = "github:Maroka-chan/VPN-Confinement";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-on-droid.url = "github:nix-community/nix-on-droid";
nix-on-droid.inputs.nixpkgs.follows = "nixpkgs";
nix-on-droid.inputs.home-manager.follows = "home-manager";
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
agenix.inputs.home-manager.follows = "home-manager";
lanzaboote.url = "github:nix-community/lanzaboote";
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
lanzaboote.inputs.pre-commit.follows = "";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
# Project dead? https://discourse.nixos.org/t/what-happened-to-raspberry-pi-nix/62417
# raspberry-pi-nix.url = "github:nix-community/raspberry-pi-nix";
# raspberry-pi-nix.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs-xr.url = "github:nix-community/nixpkgs-xr";
nixpkgs-xr.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs-xr.inputs.treefmt-nix.follows = "";
nix-flatpak.url = "github:gmodena/nix-flatpak";
nixos-hardware.url = "github:NixOS/nixos-hardware";
# Inputs that provide imported home-manager modules
nix-colors.url = "github:misterio77/nix-colors";
nix-colors.inputs.nixpkgs-lib.follows = "nixpkgs";
gnome-keybinds.url = "github:JManch/hm-gnome-keybinds";
gnome-keybinds.inputs.nixpkgs.follows = "nixpkgs";
# Inputs that provide packages
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
hyprland.url = "github:hyprwm/Hyprland/5751911091d2bbcd580597d489a1ec0b9dd542bd";
hyprland.inputs.nixpkgs.follows = "nixpkgs";
hyprland-plugins.url = "github:hyprwm/hyprland-plugins";
hyprland-plugins.inputs.hyprland.follows = "hyprland";
hypridle.url = "github:hyprwm/hypridle";
hypridle.inputs.nixpkgs.follows = "nixpkgs";
hypridle.inputs.hyprutils.follows = "hyprland/hyprutils";
hypridle.inputs.hyprland-protocols.follows = "hyprland/hyprland-protocols";
hypridle.inputs.hyprlang.follows = "hyprland/hyprlang";
hypridle.inputs.hyprwayland-scanner.follows = "hyprland/hyprwayland-scanner";
hyprlock.url = "github:hyprwm/hyprlock";
hyprlock.inputs.nixpkgs.follows = "nixpkgs";
hyprlock.inputs.hyprutils.follows = "hyprland/hyprutils";
hyprlock.inputs.hyprgraphics.follows = "hyprland/hyprgraphics";
hyprlock.inputs.hyprlang.follows = "hyprland/hyprlang";
hyprlock.inputs.hyprwayland-scanner.follows = "hyprland/hyprwayland-scanner";
hyprpolkitagent.url = "github:hyprwm/hyprpolkitagent";
hyprpolkitagent.inputs.nixpkgs.follows = "nixpkgs";
hyprpolkitagent.inputs.aquamarine.follows = "hyprland/aquamarine";
hyprpolkitagent.inputs.hyprutils.follows = "hyprland/hyprutils";
hyprpaper.url = "github:hyprwm/hyprpaper";
hyprpaper.inputs.nixpkgs.follows = "nixpkgs";
hyprpaper.inputs.aquamarine.follows = "hyprland/aquamarine";
hyprpaper.inputs.hyprutils.follows = "hyprland/hyprutils";
hyprpaper.inputs.hyprgraphics.follows = "hyprland/hyprgraphics";
hyprpaper.inputs.hyprlang.follows = "hyprland/hyprlang";
hyprpaper.inputs.hyprwayland-scanner.follows = "hyprland/hyprwayland-scanner";
hyprpaper.inputs.hyprwire.follows = "hyprland/hyprwire";
hyprsunset.url = "github:hyprwm/hyprsunset";
hyprsunset.inputs.nixpkgs.follows = "nixpkgs";
hyprsunset.inputs.hyprland-protocols.follows = "hyprland/hyprland-protocols";
hyprsunset.inputs.hyprutils.follows = "hyprland/hyprutils";
hyprsunset.inputs.hyprlang.follows = "hyprland/hyprlang";
hyprsunset.inputs.hyprwayland-scanner.follows = "hyprland/hyprwayland-scanner";
waybar.url = "github:Alexays/Waybar";
waybar.inputs.nixpkgs.follows = "nixpkgs";
nix-matlab.url = "gitlab:doronbehar/nix-matlab";
nix-matlab.inputs.nixpkgs.follows = "nixpkgs";
rust-overlay.url = "github:oxalica/rust-overlay";
mint.url = "github:trumank/mint";
mint.inputs.rust-overlay.follows = "rust-overlay";
mint.inputs.nixpkgs.follows = "nixpkgs";
noita-entangled-worlds.url = "github:IntQuant/noita_entangled_worlds";
broadcast-box.url = "github:JManch/broadcast-box/discord";
broadcast-box.inputs.nixpkgs.follows = "nixpkgs";
ircv3-filehost-server.url = "git+https://codeberg.org/whitequark/ircv3-filehost-server";
ircv3-filehost-server.inputs.nixpkgs.follows = "nixpkgs";
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
xdg-override.url = "github:koiuo/xdg-override";
xdg-override.inputs.nixpkgs.follows = "nixpkgs";
nvf.url = "github:NotAShelf/nvf";
# Personal inputs
firstBoot.url = "github:JManch/false";
vmInstall.url = "github:JManch/false";
nix-resources.url = "github:JManch/nix-resources"; # needs access-token configured to access
nix-resources.inputs.nixpkgs.follows = "nixpkgs";
};
}