-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathflake.nix
More file actions
47 lines (40 loc) · 1.29 KB
/
flake.nix
File metadata and controls
47 lines (40 loc) · 1.29 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
{
description = "A widget framework for building desktop shells, written and configurable in Python";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
ignis-gvc = {
url = "github:ignis-sh/ignis-gvc";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
ignis-gvc,
...
}: let
systems = ["x86_64-linux" "aarch64-linux"];
forAllSystems = nixpkgs.lib.genAttrs systems;
version = import ./nix/version.nix {inherit self;};
in {
packages = forAllSystems (system: {
ignis = nixpkgs.legacyPackages.${system}.callPackage ./nix {
inherit version;
ignis-gvc = ignis-gvc.packages.${system}.ignis-gvc;
};
default = self.packages.${system}.ignis;
});
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
devShells = forAllSystems (system:
import ./nix/devshell.nix {
inherit self;
pkgs = nixpkgs.legacyPackages.${system};
ignis-gvc = ignis-gvc.packages.${system}.ignis-gvc;
});
overlays.default = final: prev: {inherit (self.packages.${prev.system}) ignis;};
homeManagerModules = {
ignis = import ./nix/hm-module.nix {inherit self ignis-gvc;};
default = self.homeManagerModules.ignis;
};
};
}