forked from abenz1267/walker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
55 lines (48 loc) · 1.47 KB
/
flake.nix
File metadata and controls
55 lines (48 loc) · 1.47 KB
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 = ''
Multi-Purpose Launcher with a lot of features. Highly Customizable and fast.
'';
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default-linux";
elephant.url = "github:abenz1267/elephant";
elephant.inputs.nixpkgs.follows = "nixpkgs";
elephant.inputs.systems.follows = "systems";
};
outputs = {
self,
nixpkgs,
systems,
elephant,
...
}: let
inherit (nixpkgs) lib;
eachSystem = f:
lib.genAttrs (import systems)
(system: f nixpkgs.legacyPackages.${system});
in {
formatter = eachSystem (pkgs: pkgs.alejandra);
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
name = "walker";
inputsFrom = [self.packages.${pkgs.stdenv.system}.walker];
};
});
packages = eachSystem (pkgs: {
default = self.packages.${pkgs.stdenv.system}.walker;
walker = pkgs.callPackage ./nix/package.nix {};
});
homeManagerModules = {
default = self.homeManagerModules.walker;
walker = import ./nix/modules/home-manager.nix {inherit self elephant;};
};
nixosModules = {
default = self.nixosModules.walker;
walker = import ./nix/modules/nixos.nix {inherit self elephant;};
};
nixConfig = {
extra-substituters = ["https://walker-git.cachix.org"];
extra-trusted-public-keys = ["walker-git.cachix.org-1:vmC0ocfPWh0S/vRAQGtChuiZBTAe4wiKDeyyXM0/7pM="];
};
};
}