-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
133 lines (120 loc) · 3.47 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
description = "skibidi dots";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nur.url = "github:nix-community/nur";
nix-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
inputs.flake-compat.follows = "";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:MarceColl/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
niri = {
url = "github:sodiboo/niri-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin-vsc = {
url = "github:catppuccin/vscode";
inputs.nixpkgs.follows = "nixpkgs";
};
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
channels-config = {
allowUnfree = true;
};
snowfall = {
namespace = "skibidi";
meta = {
name = "skibidi-flake";
title = "skibidi Flake";
};
};
homes.modules = with inputs; [
nix-index-database.hmModules.nix-index
];
systems.modules.nixos = with inputs; [
nixos-cosmic.nixosModules.default
home-manager.nixosModules.home-manager
disko.nixosModules.disko
];
systems.hosts.phantom.modules = with inputs; [
nixos-hardware.nixosModules.lenovo-thinkpad-t480
(import ./disks/default.nix {
inherit lib;
device = "/dev/nvme0n1";
})
];
outputs-builder = channels: let
treefmtConfig = _: {
projectRootFile = "flake.nix";
programs = {
alejandra.enable = true;
actionlint.enable = true;
mdformat.enable = true;
statix.enable = true;
deadnix.enable = true;
just.enable = true;
stylua.enable = true;
toml-sort.enable = true;
jsonfmt.enable = true;
};
};
treefmtEval = inputs.treefmt-nix.lib.evalModule channels.nixpkgs treefmtConfig;
in {
formatter = treefmtEval.config.build.wrapper;
};
overlays = [
inputs.nix-vscode-extensions.overlays.default
inputs.niri.overlays.niri
inputs.emacs-overlay.overlays.default
inputs.catppuccin-vsc.overlays.default
(final: _prev: {
nur = import inputs.nur {
nurpkgs = final;
pkgs = final;
};
})
];
};
}