-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
104 lines (85 loc) · 2.46 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
{
description = "Vinny's NixOS Configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
nixCats = {
url = "github:BirdeeHub/nixCats-nvim";
inputs.nixpkgs.follows = "nixpkgs";
};
plugins-precognition-nvim = {
url = "github:tris203/precognition.nvim";
flake = false;
};
plugins-dbtpal-nvim = {
flake = false;
url = "github:vinnymeller/dbtpal";
};
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
twm = {
url = "github:vinnymeller/twm";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs =
inputs@{
self,
flake-utils,
nixpkgs,
nixpkgs-master,
nixpkgs-stable,
nix-index-database,
home-manager,
lanzaboote,
nixCats,
...
}:
let
inherit (self) outputs;
forAllSystems = nixpkgs.lib.genAttrs flake-utils.lib.defaultSystems; # change this if i need some weird systems
myNixCats = import ./programs/ncvim { inherit inputs; };
in
{
myNixCats = myNixCats;
packages =
forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
import ./pkgs { inherit pkgs; }
)
// myNixCats.packages;
devShells = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
import ./shell.nix { inherit pkgs; }
);
overlays = import ./overlays { inherit inputs; };
nixosConfigurations = {
vinnix = import ./hosts/vinnix { inherit inputs outputs; };
vindows = import ./hosts/home-wsl { inherit inputs outputs; };
};
homeConfigurations = {
"vinny@wdtech-eos" = import ./hosts/wdtech-eos { inherit inputs outputs; };
"vinny@camovinny" = import ./hosts/camovinny { inherit inputs outputs; };
};
};
}