1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2026-01-27 04:06:28 +01:00

refactor: use snowfall

This commit is contained in:
Ryan Cao 2024-02-10 11:56:31 +08:00
parent bb39b10e1f
commit de8503d9a6
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
34 changed files with 181 additions and 194 deletions

View file

@ -1,6 +1,4 @@
{
description = "Ryan's MacBook Pro flake";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
@ -16,6 +14,12 @@
inputs.nixpkgs.follows = "nixpkgs";
};
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-compat.follows = "";
};
catppuccin = {
url = "github:Stonks3141/ctp-nix";
};
@ -50,7 +54,7 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.fenix.follows = "fenix";
inputs.naersk.follows = "naersk";
inputs.flake-compat.follows = "flake-compat";
inputs.flake-compat.follows = "";
};
naersk = {
@ -80,29 +84,16 @@
flake-utils = {
url = "github:numtide/flake-utils";
};
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = {
nix-darwin,
home-manager,
darwin-custom-icons,
...
} @ inputs: {
darwinConfigurations.Ryans-MacBook-Pro = nix-darwin.lib.darwinSystem {
modules = [
outputs = inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
system.modules.darwin = with inputs; [
home-manager.darwinModules.home-manager
darwin-custom-icons.darwinModules.default
./system.nix
];
specialArgs = {
inherit inputs;
};
};
};
}