2021-10-17 14:04:19 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2022-04-23 09:36:20 +00:00
|
|
|
base16 = {
|
|
|
|
url = "github:SenchoPens/base16.nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-07-30 14:30:57 +00:00
|
|
|
|
|
|
|
# Used for documentation
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-02-20 19:23:05 +00:00
|
|
|
|
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
2021-10-17 14:04:19 +00:00
|
|
|
};
|
|
|
|
|
2022-07-24 16:04:14 +00:00
|
|
|
outputs =
|
2023-03-28 23:54:14 +00:00
|
|
|
{ nixpkgs, base16, self, ... }@inputs:
|
|
|
|
{
|
|
|
|
packages = nixpkgs.lib.genAttrs [
|
|
|
|
"aarch64-darwin"
|
|
|
|
"aarch64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"x86_64-linux"
|
|
|
|
] (
|
2022-07-24 16:04:14 +00:00
|
|
|
system:
|
2023-02-13 20:09:56 +00:00
|
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
2022-07-24 16:04:14 +00:00
|
|
|
in {
|
2023-03-28 23:54:14 +00:00
|
|
|
docs = import ./docs {
|
|
|
|
inherit pkgs inputs;
|
|
|
|
inherit (nixpkgs) lib;
|
|
|
|
};
|
|
|
|
|
2023-02-13 20:09:56 +00:00
|
|
|
palette-generator = pkgs.callPackage ./palette-generator { };
|
2022-07-24 16:04:14 +00:00
|
|
|
}
|
|
|
|
);
|
2022-05-02 00:12:27 +00:00
|
|
|
|
2022-07-24 16:04:14 +00:00
|
|
|
nixosModules.stylix = { pkgs, ... }@args: {
|
|
|
|
imports = [
|
2023-01-30 18:25:27 +00:00
|
|
|
(import ./stylix/nixos {
|
|
|
|
inherit (self.packages.${pkgs.system}) palette-generator;
|
|
|
|
base16 = base16.lib args;
|
2023-01-31 18:00:03 +00:00
|
|
|
homeManagerModule = self.homeManagerModules.stylix;
|
2023-01-30 18:25:27 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
homeManagerModules.stylix = { pkgs, ... }@args: {
|
|
|
|
imports = [
|
|
|
|
(import ./stylix/hm {
|
2022-07-24 16:04:14 +00:00
|
|
|
inherit (self.packages.${pkgs.system}) palette-generator;
|
|
|
|
base16 = base16.lib args;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2023-03-28 15:03:06 +00:00
|
|
|
|
|
|
|
darwinModules.stylix = { pkgs, ... }@args: {
|
|
|
|
imports = [
|
|
|
|
(import ./stylix/darwin {
|
|
|
|
inherit (self.package.${pkgs.system}) palette-generator;
|
|
|
|
base16 = base16.lib args;
|
|
|
|
homeManagerModule = self.homeManagerModules.stylix;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2022-07-24 16:04:14 +00:00
|
|
|
};
|
2021-10-17 14:04:19 +00:00
|
|
|
}
|