2023-03-26 18:14:56 -07:00
|
|
|
{
|
2023-03-27 15:49:50 -07:00
|
|
|
description = "Soothing pastel theme for Nix";
|
2023-04-13 20:35:15 -07:00
|
|
|
inputs = {
|
2023-06-02 12:25:15 -07:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
2023-04-13 20:35:15 -07:00
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-07-29 05:40:13 -07:00
|
|
|
outputs = { self, nixpkgs, ... }:
|
2023-06-02 12:29:08 -07:00
|
|
|
let
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
|
|
|
|
2023-07-29 05:40:13 -07:00
|
|
|
inherit (nixpkgs) lib;
|
|
|
|
|
|
|
|
forAllSystems = fn: lib.genAttrs systems (s: fn nixpkgsFor.${s});
|
|
|
|
nixpkgsFor = lib.genAttrs systems (system: import nixpkgs { inherit system; });
|
2023-06-02 12:29:08 -07:00
|
|
|
in
|
|
|
|
{
|
2023-07-29 05:40:13 -07:00
|
|
|
formatter = forAllSystems (pkgs: pkgs.nixpkgs-fmt);
|
|
|
|
|
2023-06-02 12:29:08 -07:00
|
|
|
homeManagerModules.catppuccin = import ./modules/home-manager nixpkgs;
|
2023-07-29 05:40:13 -07:00
|
|
|
|
|
|
|
nixosModules.catppuccin = import ./modules/nixos nixpkgs;
|
|
|
|
|
|
|
|
packages = forAllSystems (pkgs:
|
|
|
|
let
|
|
|
|
mkEval = module: lib.evalModules {
|
|
|
|
modules = [
|
|
|
|
module
|
|
|
|
{
|
|
|
|
_module = {
|
|
|
|
check = false;
|
|
|
|
args.lib = import ./modules/lib/mkExtLib.nix lib;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
mkDoc = name: options:
|
|
|
|
let
|
|
|
|
doc = pkgs.nixosOptionsDoc {
|
|
|
|
options = lib.filterAttrs (n: _: n != "_module") options;
|
|
|
|
documentType = "none";
|
|
|
|
revision = if self ? rev then builtins.substring 0 7 self.rev else "dirty";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
pkgs.runCommand "${name}-module-doc.md" { } ''
|
|
|
|
cat ${doc.optionsCommonMark} > $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
hmEval = mkEval self.homeManagerModules.catppuccin;
|
|
|
|
nixosEval = mkEval self.nixosModules.catppuccin;
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
nixos-doc = mkDoc "nixos" nixosEval.options;
|
|
|
|
home-manager-doc = mkDoc "home-manager" hmEval.options;
|
|
|
|
default = home-manager-doc;
|
|
|
|
});
|
2023-06-02 12:29:08 -07:00
|
|
|
};
|
2023-03-26 18:14:56 -07:00
|
|
|
}
|