-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
103 lines (83 loc) · 3.73 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
{
description = "Liberion's Core";
inputs = {
# -------------------------------------------------------------------------
# nix
# -------------------------------------------------------------------------
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# self pkgs
nurpkgs.url = "github:anntnzrb/nurpkgs/main";
nurpkgs.inputs.systems.follows = "systems";
# user environment manager
home-manager.url = "github:nix-community/home-manager/release-24.11"; # NOTE: match nixpkgs
home-manager.inputs.nixpkgs.follows = "nixpkgs-stable";
home-manager-unstable.url = "github:nix-community/home-manager/master";
home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs-stable";
# flake framework
snowfall-lib.url = "github:snowfallorg/lib/main";
snowfall-lib.inputs.nixpkgs.follows = "nixpkgs-stable";
snowfall-lib.inputs.flake-compat.follows = "flake-compat";
# collection of hardware modules for systems
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
# generate images (iso, sd, amazon, ...)
nixos-generators.url = "github:nix-community/nixos-generators/master";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs-stable";
# pre-commit
pre-commit-hooks.url = "github:cachix/git-hooks.nix/master";
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs-unstable";
pre-commit-hooks.inputs.nixpkgs-stable.follows = "nixpkgs-stable";
pre-commit-hooks.inputs.flake-compat.follows = "flake-compat";
pre-commit-hooks.inputs.gitignore.follows = "";
# -------------------------------------------------------------------------
# darwin
# -------------------------------------------------------------------------
# macOS support
darwin.url = "github:LnL7/nix-darwin/master";
darwin.inputs.nixpkgs.follows = "nixpkgs-stable";
# nix-homebrew integration
nix-homebrew.url = "github:zhaofengli/nix-homebrew/main";
nix-homebrew.inputs.nixpkgs.follows = "nixpkgs-stable";
nix-homebrew.inputs.nix-darwin.follows = "darwin";
nix-homebrew.inputs.flake-utils.follows = "flake-utils";
# fix .app bundles
mac-app-util.url = "github:hraban/mac-app-util/master";
mac-app-util.inputs.flake-compat.follows = "flake-compat";
# -------------------------------------------------------------------------
# misc
# -------------------------------------------------------------------------
# Neovim
neovim-annt.url = "github:anntnzrb/nixvim/main";
# Emacs
emacs-overlay.url = "github:nix-community/emacs-overlay/master";
# Firefox extensions (add-ons)
firefox-addons.url = "github:nix-community/nur-combined/master?dir=repos/rycee/pkgs/firefox-addons";
firefox-addons.inputs.nixpkgs.follows = "nixpkgs-stable";
firefox-addons.inputs.flake-utils.follows = "flake-utils";
# -------------------------------------------------------------------------
# follows
# -------------------------------------------------------------------------
systems.url = "github:nix-systems/default/main";
flake-utils.url = "github:numtide/flake-utils/main";
flake-utils.inputs.systems.follows = "systems";
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
};
outputs =
inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./nix;
snowfall =
let
codeName = "liberion";
in
{
namespace = codeName;
meta.name = codeName;
meta.title = codeName;
};
overlays = [ inputs.emacs-overlay.overlays.default ];
channels-config.allowUnfree = true;
};
}