-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
92 lines (72 loc) · 2.34 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
{
description = "Jeosas' infrastructure and dotfiles";
inputs = {
# NixPkgs
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
# NixPkgs unstable
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Nixos Hardware
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
# Snowfall lib: flake management
snowfall-lib.url = "github:snowfallorg/lib";
snowfall-lib.inputs.nixpkgs.follows = "nixpkgs";
# NixOS User Repository
nurpkgs.url = "github:nix-community/NUR";
# Impermanence
impermanence.url = "github:nix-community/impermanence";
# Home manager
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# NixGL: support graphical apps on non-nixos distros
nixgl.url = "github:guibou/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
# Arkenfox config
arkenfox-userjs.url = "github:arkenfox/user.js";
arkenfox-userjs.flake = false;
# NixVim
nixvim.url = "github:nix-community/nixvim/nixos-24.11";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
# --- Perso--- // TODO: migrate in here as a monorepository
# thewinterdev website
thewinterdev-website.url = "github:Jeosas/thewinterdev.fr";
thewinterdev-website.inputs.nixpkgs.follows = "nixpkgs";
# ongaku: music library management
ongaku.url = "github:Jeosas/ongaku";
ongaku.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
inputs:
let
lib = inputs.snowfall-lib.mkLib {
inherit inputs;
src = ./.;
snowfall = {
meta = {
name = "jeosas-config";
title = "Jeosas' config";
};
namespace = "jeomod";
};
};
in
lib.mkFlake {
channels-config = {
allowUnfree = true;
};
overlays = with inputs; [ nurpkgs.overlays.default ];
systems.modules.nixos = with inputs; [
home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence
];
homes.modules = with inputs; [ impermanence.homeManagerModules.impermanence ];
templates = {
rust.description = "Rust development environment";
};
outputs-builder = channels: {
formatter = channels.nixpkgs.nixfmt-rfc-style;
};
}
// {
inherit (inputs) self;
};
}