-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
83 lines (82 loc) · 2.45 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
{
description = "NixOS Config";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-latest.url = "github:NixOS/nixpkgs/master";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin.url = "github:catppuccin/nix";
wallpapers = {
url = "github:adace123/wallpapers";
flake = false;
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nuenv.url = "github:DeterminateSystems/nuenv";
sops-nix.url = "github:Mic92/sops-nix";
hyprkeys.url = "github:hyprland-community/Hyprkeys";
hyprland-contrib.url = "github:hyprwm/contrib";
pyprland.url = "github:hyprland-community/pyprland";
nix-std.url = "github:chessai/nix-std";
nur.url = "github:nix-community/NUR";
pre-commit = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = {
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nu_scripts = {
url = "github:nushell/nu_scripts";
flake = false;
};
anyrun = {
url = "github:Kirottu/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
nuenv,
...
} @ inputs: let
inherit (self) outputs;
overlays = with inputs; [
nuenv.overlays.nuenv
nur.overlay
outputs.overlays.default
hyprland-contrib.overlays.default
];
systems = ["x86_64-linux" "aarch64-darwin"];
forEachSystem = nixpkgs.lib.genAttrs systems;
forEachPkgs = f: forEachSystem (system: f (import nixpkgs {inherit system overlays;}));
in
{
packages = forEachPkgs (pkgs: (import ./pkgs {inherit pkgs inputs;}));
overlays = import ./overlays {inherit inputs;};
devShells = forEachPkgs (pkgs: import ./shell.nix {inherit pkgs self;});
checks = forEachPkgs (pkgs: {
pre-commit-check = inputs.pre-commit.lib.${pkgs.system}.run {
src = ./.;
hooks = {
alejandra.enable = true;
commitizen.enable = true;
deadnix.enable = true;
nil.enable = true;
};
};
});
}
// (import ./hosts {inherit inputs overlays;});
}