2021-10-17 14:04:19 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
2023-10-10 09:44:54 +00:00
|
|
|
base16-fish = {
|
|
|
|
flake = false;
|
2024-02-07 11:03:02 +00:00
|
|
|
url = "github:tomyun/base16-fish";
|
2023-10-10 09:44:54 +00:00
|
|
|
};
|
2024-02-07 11:03:02 +00:00
|
|
|
|
2023-10-10 09:44:54 +00:00
|
|
|
base16-foot = {
|
|
|
|
flake = false;
|
2024-02-07 11:03:02 +00:00
|
|
|
url = "github:tinted-theming/base16-foot";
|
2023-10-10 09:44:54 +00:00
|
|
|
};
|
2024-02-07 11:03:02 +00:00
|
|
|
|
2023-10-10 09:44:54 +00:00
|
|
|
base16-helix = {
|
2024-02-07 11:03:02 +00:00
|
|
|
flake = false;
|
2023-10-10 09:44:54 +00:00
|
|
|
url = "github:tinted-theming/base16-helix";
|
2024-02-07 11:03:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
base16-tmux = {
|
2023-10-10 09:44:54 +00:00
|
|
|
flake = false;
|
2024-02-07 11:03:02 +00:00
|
|
|
url = "github:tinted-theming/base16-tmux";
|
2023-10-10 09:44:54 +00:00
|
|
|
};
|
2024-02-07 11:03:02 +00:00
|
|
|
|
2023-10-10 09:44:54 +00:00
|
|
|
base16-kitty = {
|
2024-02-07 11:03:02 +00:00
|
|
|
flake = false;
|
2023-10-10 09:44:54 +00:00
|
|
|
url = "github:kdrag0n/base16-kitty";
|
2024-02-07 11:03:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
base16-vim = {
|
2023-10-10 09:44:54 +00:00
|
|
|
flake = false;
|
2024-06-15 13:11:46 +00:00
|
|
|
url = "github:tinted-theming/base16-vim";
|
2023-10-10 09:44:54 +00:00
|
|
|
};
|
2024-02-07 11:03:02 +00:00
|
|
|
|
|
|
|
base16.url = "github:SenchoPens/base16.nix";
|
|
|
|
|
|
|
|
flake-compat = {
|
2023-10-10 09:44:54 +00:00
|
|
|
flake = false;
|
2024-02-07 11:03:02 +00:00
|
|
|
url = "github:edolstra/flake-compat";
|
2023-10-10 09:44:54 +00:00
|
|
|
};
|
2024-02-07 11:03:02 +00:00
|
|
|
|
2024-08-19 22:28:36 +00:00
|
|
|
flake-utils = {
|
|
|
|
inputs.systems.follows = "systems";
|
|
|
|
url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
2024-02-07 11:03:02 +00:00
|
|
|
gnome-shell = {
|
2023-10-10 09:44:54 +00:00
|
|
|
flake = false;
|
2024-02-07 11:03:02 +00:00
|
|
|
|
|
|
|
# TODO: Unlocking the input and pointing to official repository requires
|
|
|
|
# updating the patch:
|
|
|
|
# https://github.com/danth/stylix/pull/224#discussion_r1460339607.
|
2024-05-09 12:41:00 +00:00
|
|
|
url = "github:GNOME/gnome-shell/46.1";
|
2023-10-10 09:44:54 +00:00
|
|
|
};
|
2024-02-07 11:03:02 +00:00
|
|
|
|
|
|
|
# The 'home-manager' input is used to generate the documentation.
|
|
|
|
home-manager = {
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2024-08-19 22:28:36 +00:00
|
|
|
|
|
|
|
# Interface flake systems.
|
2024-08-19 22:05:52 +00:00
|
|
|
systems.url = "github:nix-systems/default";
|
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:
|
2024-08-20 12:44:09 +00:00
|
|
|
inputs.flake-utils.lib.eachDefaultSystem (
|
|
|
|
system: let
|
|
|
|
inherit (nixpkgs) lib;
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
packages = let
|
|
|
|
universalPackages = {
|
|
|
|
docs = import ./docs { inherit pkgs inputs lib; };
|
|
|
|
palette-generator = pkgs.callPackage ./palette-generator { };
|
|
|
|
};
|
|
|
|
|
|
|
|
# Testbeds are virtual machines based on NixOS, therefore they are
|
|
|
|
# only available for Linux systems.
|
|
|
|
testbedPackages = lib.optionalAttrs
|
|
|
|
(lib.hasSuffix "-linux" system)
|
|
|
|
(import ./stylix/testbed.nix { inherit pkgs inputs lib; });
|
|
|
|
in
|
|
|
|
universalPackages // testbedPackages;
|
|
|
|
}
|
|
|
|
)
|
|
|
|
// {
|
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
|
|
|
}
|