2025-01-05 03:15:23 +05:30
|
|
|
{
|
|
|
|
|
description = "lilJ's nix-config";
|
|
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2025-01-07 20:55:08 +05:30
|
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.11";
|
2025-01-05 03:15:23 +05:30
|
|
|
home-manager = {
|
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
nix-darwin = {
|
|
|
|
|
url = "github:LnL7/nix-darwin";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
outputs = inputs @ {
|
|
|
|
|
self,
|
|
|
|
|
nixpkgs,
|
|
|
|
|
nix-darwin,
|
|
|
|
|
home-manager,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
username = "lilj";
|
|
|
|
|
email = "kulvir@duck.com";
|
|
|
|
|
|
2025-01-07 00:01:27 +05:30
|
|
|
system = "aarch64-darwin"; # apple
|
2025-01-05 03:15:23 +05:30
|
|
|
forAllSystems = nixpkgs.lib.genAttrs [
|
|
|
|
|
"aarch64-darwin"
|
|
|
|
|
];
|
|
|
|
|
inherit (self) outputs;
|
|
|
|
|
in {
|
2025-01-07 15:48:29 +05:30
|
|
|
# own packages and some modifications
|
2025-01-05 03:15:23 +05:30
|
|
|
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
|
|
|
|
|
overlays = import ./overlays {inherit inputs;};
|
|
|
|
|
|
|
|
|
|
# darwin-rebuild switch --flake .#mba
|
|
|
|
|
darwinConfigurations."mba" = nix-darwin.lib.darwinSystem {
|
|
|
|
|
specialArgs = {inherit inputs username email outputs system;};
|
|
|
|
|
modules = [
|
|
|
|
|
./hosts/mba
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
|
|
|
|
};
|
|
|
|
|
}
|