2023-12-16 15:38:36 -08:00
|
|
|
{
|
|
|
|
description = "Soothing pastel theme for Nix";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-29 13:21:14 -07:00
|
|
|
outputs = { self, nixpkgs, home-manager }:
|
2023-12-16 15:38:36 -08:00
|
|
|
let
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
|
|
|
|
2024-04-29 13:21:14 -07:00
|
|
|
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
|
2023-12-16 15:38:36 -08:00
|
|
|
in
|
|
|
|
{
|
2024-04-29 13:21:14 -07:00
|
|
|
checks = forAllSystems ({ lib, pkgs, ... }: lib.optionalAttrs pkgs.stdenv.isLinux {
|
|
|
|
module-vm-test = pkgs.callPackage ../test.nix { inherit home-manager; };
|
2023-12-16 15:38:36 -08:00
|
|
|
});
|
|
|
|
|
|
|
|
formatter = forAllSystems (pkgs: pkgs.nixpkgs-fmt);
|
|
|
|
|
|
|
|
packages = forAllSystems (pkgs:
|
|
|
|
let
|
2024-04-29 13:21:14 -07:00
|
|
|
version = self.shortRev or self.dirtyShortRev or "unknown";
|
2024-04-29 13:35:57 -07:00
|
|
|
mkOptionDoc = args: (pkgs.callPackage ./option-doc.nix { }) (args // { inherit version; });
|
2023-12-16 15:38:36 -08:00
|
|
|
in
|
|
|
|
{
|
2024-04-29 13:21:14 -07:00
|
|
|
nixos-doc = mkOptionDoc {
|
|
|
|
modules = [ ../modules/nixos ];
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager-doc = mkOptionDoc {
|
|
|
|
modules = [ ../modules/home-manager ];
|
|
|
|
};
|
2023-12-16 15:38:36 -08:00
|
|
|
|
|
|
|
default = self.packages.${pkgs.system}.home-manager-doc;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|