-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
118 lines (101 loc) · 3.1 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
description = "le nix config";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home.url = "github:nix-community/home-manager";
home.inputs.nixpkgs.follows = "nixpkgs";
catppuccin.url = "github:catppuccin/nix";
flake-parts.url = "github:hercules-ci/flake-parts";
hyprland.url = "git+https://github.com/hyprwm/Hyprland";
hypridle = {
url = "github:hyprwm/hypridle";
inputs = {
hyprlang.follows = "hyprland/hyprlang";
hyprutils.follows = "hyprland/hyprutils";
nixpkgs.follows = "hyprland/nixpkgs";
systems.follows = "hyprland/systems";
};
};
hyprlock = {
url = "github:hyprwm/hyprlock";
inputs = {
hyprlang.follows = "hyprland/hyprlang";
hyprutils.follows = "hyprland/hyprutils";
nixpkgs.follows = "hyprland/nixpkgs";
systems.follows = "hyprland/systems";
};
};
hyprpaper = {
url = "github:hyprwm/hyprpaper";
inputs = {
hyprlang.follows = "hyprland/hyprlang";
hyprutils.follows = "hyprland/hyprutils";
nixpkgs.follows = "hyprland/nixpkgs";
systems.follows = "hyprland/systems";
};
};
hyprpicker = {
url = "github:hyprwm/hyprpicker";
inputs = {
hyprutils.follows = "hyprland/hyprutils";
nixpkgs.follows = "hyprland/nixpkgs";
systems.follows = "hyprland/systems";
};
};
# For now, until that hyprland recompilation thing is fixed
waybar = {
url = "github:Alexays/Waybar";
# inputs.nixpkgs.follows = "nixpkgs";
};
# Do not follow nixpkgs as it takes forever to build each time
# Does not matter anyway, it's just fonts
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
# fixes: https://github.com/the-argus/spicetify-nix/issues/48
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
raulyrs.url = "github:frahz/rauly.rs";
sugoi.url = "github:frahz/sugoi";
tailray = {
url = "github:frahz/tailray";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.pre-commit-hooks.flakeModule
./home/profiles
./hosts
];
systems = ["x86_64-linux"];
perSystem = {
config,
pkgs,
...
}: {
pre-commit = {
check.enable = true;
settings = {
hooks = {
alejandra.enable = true;
statix.enable = true;
};
};
};
devShells.default = pkgs.mkShell {
shellHook = config.pre-commit.installationScript;
packages = with pkgs; [
git
sops
alejandra
statix
];
};
formatter = pkgs.alejandra;
};
};
}