forked from schizofox/schizofox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
77 lines (64 loc) · 1.88 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
{
description = "Firefox configuration flake for delusional and schizophrenics";
outputs = {
flake-parts,
self,
nixpkgs,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = import inputs.systems;
imports = [
./pkgs # packages exposed by the flake
./tests # machine tests
];
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
# provide nix diagnostics - do not run with --fix options unless you know what you are doing
devShells.default = pkgs.mkShell {
name = "schizofox-dev";
packages = with pkgs; [
statix
deadnix
];
};
};
flake = {
lib = {
inherit (import ./lib/extended-lib.nix nixpkgs.lib) schizofox;
};
homeManagerModule = self.homeManagerModules.schizofox; # an alias to the default module
homeManagerModules = {
schizofox = import ./modules/home-manager self;
default = self.homeManagerModules.schizofox;
};
};
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Overridable flake systems.
# See: <https://github.com/nix-systems/nix-systems>
systems.url = "github:nix-systems/default-linux";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
nixpak = {
url = "github:nixpak/nixpak";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
searx-randomizer = {
url = "github:schizofox/searx-randomizer";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}