-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
59 lines (43 loc) · 1.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
{
description = "My nix config";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixos-generators.url = "github:nix-community/nixos-generators";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
hardware.url = "github:nixos/nixos-hardware";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
impermanence.url = "github:nix-community/impermanence";
nixvim.url = "github:nix-community/nixvim";
nixgl.url = "github:nix-community/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
firefox-addons.url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
firefox-addons.inputs.nixpkgs.follows = "nixpkgs";
tmux-which-key.url = "github:alexwforsythe/tmux-which-key";
tmux-which-key.flake = false;
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-darwin" ];
imports = [
./lib/flake-module.nix
./nvim/flake-module.nix
./modules/flake-module.nix
./hosts/flake-module.nix
./isos/flake-module.nix
];
perSystem = { config, self', inputs', pkgs, ... }: {
# Define a bootstrapping shell, used by `nix develop`
devShells = import ./shell.nix { inherit pkgs; };
# Use the beta nixpkgs-fmt
# Alejandra is too strict...
formatter = pkgs.nixpkgs-fmt;
};
# Allow inspecting flake-parts config in the repl
# Adds the outputs debug.options, debug.config, etc
debug = true;
};
}