-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
89 lines (78 loc) · 2.88 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
{
outputs =
{ flake-parts, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } (
{
flake-parts-lib,
withSystem,
config,
options,
lib,
...
}:
let
importApply =
module:
flake-parts-lib.importApply module {
local = {
inherit
withSystem
config
options
inputs
lib
;
};
};
parts = import ./parts { inherit importApply lib; };
in
{
debug = true;
imports = builtins.attrValues parts;
systems = [
"x86_64-linux"
"aarch64-darwin"
];
}
);
inputs = {
#========================================================
# Repository and flake utilities
#========================================================
github-actions.url = "github:nix-community/nix-github-actions";
github-actions.inputs.nixpkgs.follows = "nixpkgs";
git-hooks.url = "github:cachix/git-hooks.nix";
git-hooks.inputs.nixpkgs.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
#========================================================
# System configuration
#========================================================
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
#========================================================
# Dependencies
#========================================================
fenix.url = "github:nix-community/fenix";
firefox-addons.inputs.nixpkgs.follows = "nixpkgs-unfree";
firefox-addons.url = "gitlab:rycee/nur-expressions/master?dir=pkgs/firefox-addons";
fonts.url = "git+ssh://git@github.com/remi-gelinas/fonts";
ghostty.url = "git+ssh://git@github.com/ghostty-org/ghostty";
lix-module.inputs.lix.follows = "lix";
lix-module.url = "git+https://git.lix.systems/lix-project/nixos-module?ref=main";
lix.url = "git+https://git.lix.systems/lix-project/lix?ref=main";
neovim.url = "github:nix-community/neovim-nightly-overlay";
nixd.url = "github:nix-community/nixd/2.2.3";
nixpkgs-firefox-darwin.url = "github:bandithedoge/nixpkgs-firefox-darwin";
nixpkgs-master.url = "github:NixOS/nixpkgs";
nixpkgs-unfree.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs-unfree.url = "github:numtide/nixpkgs-unfree";
nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
stylix.url = "github:danth/stylix";
#--------------------------------------------------------
# Homebrew dependencies for Darwin
#--------------------------------------------------------
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
};
}