-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
54 lines (50 loc) · 1.96 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
{
description = "WIP";
inputs = {
flake-help.url = "github:rehno-lindeque/flake-help";
home-manager.url = "github:nix-community/home-manager/release-23.11";
my-dev-shells.url = "path:./my-dev-shells";
my-nixos-configurations.url = "path:./my-nixos-configurations";
nixpkgs-shim-images.url = "github:rehno-lindeque/nixpkgs-shim-images/fc365e485d98dcc1e8f278654618b8edf3424b03"; # master branch is broken
nixpkgs-shim.url = "github:rehno-lindeque/nixpkgs-shim";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
circuithub-nixos-configurations.url = "git+ssh://[email protected]/circuithub/nixos-configurations.git";
# Redirect all inputs to local paths & unified pins
# This can be inspected with `nix flake metadata | grep git`
circuithub-nixos-configurations.inputs = {
nixpkgs.follows = "nixpkgs-stable";
flake-help.follows = "flake-help";
};
home-manager.inputs.nixpkgs.follows = "nixpkgs-stable";
my-dev-shells.inputs = {
nixpkgs-unstable.follows = "nixpkgs-unstable";
};
my-nixos-configurations.inputs = {
flake-help.follows = "flake-help";
home-manager.follows = "home-manager";
nixpkgs-shim.follows = "nixpkgs-shim";
nixpkgs-stable.follows = "nixpkgs-stable";
nixpkgs-unstable.follows = "nixpkgs-unstable";
circuithub-nixos-configurations.follows = "circuithub-nixos-configurations";
};
nixpkgs-shim.inputs = {
nixpkgs.follows = "nixpkgs-stable";
nixpkgs-shim-images.follows = "nixpkgs-shim-images";
};
nixpkgs-shim-images.inputs = {
nixpkgs.follows = "nixpkgs-stable";
};
};
outputs = {
self,
nixpkgs-shim,
my-dev-shells,
my-nixos-configurations,
...
}: {
inherit (my-nixos-configurations) nixosConfigurations;
inherit (my-dev-shells) devShells;
formatter.x86_64-linux = nixpkgs-shim.legacyPackages.x86_64-linux.alejandra;
};
}