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:
parent
bb39b10e1f
commit
de8503d9a6
34 changed files with 181 additions and 194 deletions
35
flake.nix
35
flake.nix
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue