-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
80 lines (68 loc) · 1.74 KB
/
flake.nix
File metadata and controls
80 lines (68 loc) · 1.74 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
{
description = "My NixOS configs";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-wsl = {
url = "github:nix-community/NixOS-WSL/main";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
caelestia = {
url = "github:caelestia-dots/shell";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
NUR = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
hyprdynamicmonitors = {
url = "github:fiffeek/hyprdynamicmonitors";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
skills-catalog = {
url = "path:./home/programs/opencode/skills-catalog";
};
auxera-pkgs.url = "github:auxera/nixpkgs";
};
outputs = inputs: let
lib = import ./lib inputs;
hosts = import ./hosts inputs;
in
{
nixosConfigurations = lib.mkNix {
configurations = hosts.systems;
inputs = inputs;
};
}
// inputs.flake-utils.lib.eachDefaultSystem (
system: let
pkgs = lib.pkgsFor system;
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
alejandra
sops
];
shellHook = ''
cp -r .githooks/* .git/hooks
chmod +x .git/hooks/*
'';
};
}
);
}