mirror of
https://github.com/ryanccn/flake.git
synced 2026-01-27 04:06:28 +01:00
123 lines
2.9 KiB
Nix
123 lines
2.9 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.crane.follows = "crane";
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
inputs.flake-compat.follows = "flake-compat";
|
|
};
|
|
|
|
catppuccin = {
|
|
url = "github:Stonks3141/ctp-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-compat.follows = "flake-compat";
|
|
};
|
|
|
|
discord-applemusic-rich-presence = {
|
|
url = "github:ryanccn/discord-applemusic-rich-presence";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
am = {
|
|
url = "github:ryanccn/am";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nyoom = {
|
|
url = "https://flakehub.com/f/ryanccn/nyoom/0.*.tar.gz";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
fh = {
|
|
url = "https://flakehub.com/f/DeterminateSystems/fh/*.tar.gz";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.fenix.follows = "fenix";
|
|
inputs.naersk.follows = "naersk";
|
|
inputs.flake-compat.follows = "flake-compat";
|
|
};
|
|
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
};
|
|
|
|
naersk = {
|
|
url = "github:nix-community/naersk";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
fenix = {
|
|
url = "github:nix-community/fenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
crane = {
|
|
url = "github:ipetkov/crane";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.rust-overlay.follows = "rust-overlay";
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
inputs.flake-compat.follows = "flake-compat";
|
|
};
|
|
|
|
darwin-custom-icons = {
|
|
url = "github:ryanccn/nix-darwin-custom-icons";
|
|
};
|
|
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
flake-compat = {
|
|
url = "github:edolstra/flake-compat";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nix-darwin,
|
|
home-manager,
|
|
darwin-custom-icons,
|
|
...
|
|
} @ inputs: {
|
|
darwinConfigurations.Ryans-MacBook-Pro = nix-darwin.lib.darwinSystem {
|
|
modules = [
|
|
home-manager.darwinModules.home-manager
|
|
darwin-custom-icons.darwinModules.default
|
|
./system.nix
|
|
];
|
|
|
|
specialArgs = {inherit inputs;};
|
|
};
|
|
|
|
checks = {
|
|
aarch64-darwin =
|
|
builtins.mapAttrs (
|
|
_: v:
|
|
builtins.seq
|
|
v.config.system.build.toplevel
|
|
v.pkgs.emptyFile
|
|
)
|
|
self.darwinConfigurations;
|
|
};
|
|
};
|
|
}
|