mirror of
https://github.com/ryanccn/flake.git
synced 2026-01-27 04:06:28 +01:00
72 lines
1.6 KiB
Nix
72 lines
1.6 KiB
Nix
{
|
|
description = "Ryan's MacBook Pro flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
nix-darwin = {
|
|
url = "github:LnL7/nix-darwin";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
attic = {
|
|
url = "github:zhaofengli/attic";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.nixpkgs-stable.follows = "nixpkgs";
|
|
inputs.flake-compat.follows = "flake-compat";
|
|
};
|
|
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.home-manager.follows = "home-manager";
|
|
inputs.darwin.follows = "nix-darwin";
|
|
};
|
|
|
|
fenix = {
|
|
url = "github:nix-community/fenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
catppuccin = {
|
|
url = "github:Stonks3141/ctp-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-compat.follows = "flake-compat";
|
|
};
|
|
|
|
flake-compat = {
|
|
url = "github:edolstra/flake-compat";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ {
|
|
self,
|
|
nix-darwin,
|
|
home-manager,
|
|
agenix,
|
|
fenix,
|
|
attic,
|
|
catppuccin,
|
|
...
|
|
}: let
|
|
configuration = {pkgs, ...}:
|
|
import ./system.nix {
|
|
inherit (inputs) agenix fenix attic catppuccin;
|
|
inherit pkgs;
|
|
};
|
|
in {
|
|
darwinConfigurations.Ryans-MacBook-Pro = nix-darwin.lib.darwinSystem {
|
|
modules = [
|
|
configuration
|
|
home-manager.darwinModules.home-manager
|
|
];
|
|
};
|
|
|
|
darwinPackages = self.darwinConfigurations.Ryans-MacBook-Pro.pkgs;
|
|
};
|
|
}
|