-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
119 lines (115 loc) · 3.26 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
119
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-latest.url = "github:nixos/nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
agenix.url = "github:ryantm/agenix";
base16-templates-source = {
url = "github:chriskempson/base16-templates-source";
flake = false;
};
devenv.url = "github:cachix/devenv";
git-branchless.url = "github:arxanas/git-branchless/v0.9.0";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "git+https://github.com/hyprwm/hyprland?ref=refs/tags/v0.43.0&submodules=1";
inputs.nixpkgs.follows = "nixpkgs";
};
hypridle = {
url = "github:hyprwm/hypridle";
inputs = {
hyprlang.follows = "hyprland/hyprlang";
nixpkgs.follows = "nixpkgs";
systems.follows = "hyprland/systems";
};
};
hyprlock = {
url = "github:hyprwm/hyprlock";
inputs = {
hyprlang.follows = "hyprland/hyprlang";
nixpkgs.follows = "nixpkgs";
systems.follows = "hyprland/systems";
};
};
hyprpaper = {
url = "github:hyprwm/hyprpaper";
inputs = {
nixpkgs.follows = "nixpkgs";
hyprlang.follows = "hyprland/hyprlang";
systems.follows = "hyprland/systems";
};
};
mcmojave-cursor = {
url = "github:libadoxon/mcmojave-hyprcursor";
inputs = {
hyprcursor.follows = "hyprland/hyprcursor";
nixpkgs.follows = "hyprland/nixpkgs";
systems.follows = "hyprland/systems";
};
};
nix-flake-templates = {
url = "github:willruggiano/nix-flake-templates";
flake = false;
};
nixos-hardware.url = "github:nixos/nixos-hardware";
nom.url = "github:maralorn/nix-output-monitor";
nur.url = "github:nix-community/nur";
# nurl.url = "github:nix-community/nurl";
stylix = {
url = "github:danth/stylix";
inputs = {
home-manager.follows = "home-manager";
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = {
self,
flake-parts,
nixpkgs,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.devenv.flakeModule
./packages
./modules
./hosts
];
systems = ["x86_64-linux"];
perSystem = {
lib,
pkgs,
self',
...
}: {
devenv.shells.default = {
name = "dotfiles";
containers = lib.mkForce {};
packages = with pkgs; [just niv nix-output-monitor];
pre-commit.hooks = {
alejandra.enable = true;
ruff.enable = true;
stylua.enable = true;
};
scripts = {
update-docsets.exec = let
inherit (pkgs.docsets) update-docsets;
in ''
${lib.getExe update-docsets} ./packages/docsets
git commit -am 'chore: update docsets'
'';
update-neovim.exec = ''
nix flake lock --update-input neovim
git commit -am 'chore: update neovim'
'';
};
};
};
};
}