-
Notifications
You must be signed in to change notification settings - Fork 27
/
flake.nix
55 lines (46 loc) · 1.92 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
{
description = "NixOS/nix-darwin/home-manager configuration using Nix Flakes.";
nixConfig.commit-lockfile-summary = "flake: bump inputs";
outputs = inputs: inputs.parts.lib.mkFlake { inherit inputs; } {
systems = [ "aarch64-darwin" "x86_64-linux" ];
imports = [ ./modules/parts ./overlays ./hosts ./users ];
};
inputs = {
### -- nix lang & nixpkgs help
nix.url = "github:nixos/nix";
nix-index-database.url = "github:Mic92/nix-index-database";
nixpkgs-fmt.url = "github:nix-community/nixpkgs-fmt";
parts.url = "github:hercules-ci/flake-parts";
statix.url = "github:nerdypepper/statix";
### -- nixpkgs
master.url = "github:nixos/nixpkgs/master";
stable.url = "github:nixos/nixpkgs/release-23.05";
unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nur.url = "github:nix-community/NUR";
# Default Nixpkgs for packages and modules
nixpkgs.follows = "master";
### -- platform support
darwin.url = "github:lnl7/nix-darwin";
home.url = "github:nix-community/home-manager";
nixos-wsl.url = "github:nix-community/nixos-wsl";
vscode-server.url = "github:nix-community/nixos-vscode-server";
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
### -- tooling
# colorscheme
nix-colors.url = "github:Misterio77/nix-colors";
# language support
rust-overlay.url = "github:oxalica/rust-overlay";
# desktop
eww.url = "github:elkowar/eww";
eww.inputs.rust-overlay.follows = "rust-overlay";
# Minimize duplicate instances of inputs
nix.inputs.nixpkgs.follows = "nixpkgs";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
darwin.inputs.nixpkgs.follows = "nixpkgs";
home.inputs.nixpkgs.follows = "nixpkgs";
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
statix.inputs.nixpkgs.follows = "nixpkgs";
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
eww.inputs.nixpkgs.follows = "nixpkgs";
};
}