2021-10-17 14:04:19 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2023-07-19 11:30:31 +00:00
|
|
|
base16.url = "github:SenchoPens/base16.nix";
|
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;
|
|
|
|
};
|
2023-10-10 09:44:54 +00:00
|
|
|
|
|
|
|
# Templates
|
|
|
|
base16-alacritty = {
|
|
|
|
url = "github:aarowill/base16-alacritty";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
base16-fish = {
|
|
|
|
url = "github:tomyun/base16-fish";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
base16-foot = {
|
|
|
|
url = "github:tinted-theming/base16-foot";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
base16-helix = {
|
|
|
|
url = "github:tinted-theming/base16-helix";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
base16-kitty = {
|
|
|
|
url = "github:kdrag0n/base16-kitty";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
base16-tmux = {
|
|
|
|
url = "github:tinted-theming/base16-tmux";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
base16-vim = {
|
|
|
|
url = "github:chriskempson/base16-vim";
|
|
|
|
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-10-10 09:44:54 +00:00
|
|
|
(import ./stylix/nixos inputs {
|
2023-01-30 18:25:27 +00:00
|
|
|
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 = [
|
2023-10-10 09:44:54 +00:00
|
|
|
(import ./stylix/hm inputs {
|
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 = [
|
2023-10-10 09:44:54 +00:00
|
|
|
(import ./stylix/darwin inputs {
|
2023-04-01 10:53:33 +00:00
|
|
|
inherit (self.packages.${pkgs.system}) palette-generator;
|
2023-03-28 15:03:06 +00:00
|
|
|
base16 = base16.lib args;
|
|
|
|
homeManagerModule = self.homeManagerModules.stylix;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2022-07-24 16:04:14 +00:00
|
|
|
};
|
2021-10-17 14:04:19 +00:00
|
|
|
}
|