rose-pine-nix/flake.nix

35 lines
885 B
Nix
Raw Normal View History

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 = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2023-04-13 20:35:15 -07:00
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
2023-06-02 12:29:08 -07:00
outputs = { nixpkgs, ... }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
forEachSystem = fn:
forAllSystems (system:
fn {
inherit system;
pkgs = nixpkgsFor.${system};
});
in
{
nixosModules.catppuccin = import ./modules/nixos nixpkgs;
homeManagerModules.catppuccin = import ./modules/home-manager nixpkgs;
formatter = forEachSystem ({ pkgs, ... }: pkgs.nixpkgs-fmt);
};
2023-03-26 18:14:56 -07:00
}