Abhinav Sarkar
d7ca34e341
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/3df2a80f3f85f91ea06e5e91071fa74ba92e5084' (2024-01-23) → 'github:nix-community/home-manager/d634c3abafa454551f2083b054cd95c3f287be61' (2024-01-28) • Updated input 'nix-darwin': 'github:LnL7/nix-darwin/4b9b83d5a92e8c1fbfd8eb27eda375908c11ec4d' (2023-11-24) → 'github:LnL7/nix-darwin/91b9daf672c957ef95a05491a75f62e6a01d5aaf' (2024-01-30) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/5f5210aa20e343b7e35f40c033000db0ef80d7b9' (2024-01-22) → 'github:nixos/nixpkgs/222c1940fafeda4dea161858ffe6ebfc853d3db5' (2024-01-30)
68 lines
1.9 KiB
Nix
68 lines
1.9 KiB
Nix
{
|
|
description = "Nix Darwin + Home Manager configuration of Abhinav Sarkar";
|
|
|
|
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";
|
|
};
|
|
flake-compat = {
|
|
url = "github:edolstra/flake-compat";
|
|
flake = false;
|
|
};
|
|
dm-mono-font = {
|
|
url = "github:googlefonts/dm-mono";
|
|
flake = false;
|
|
};
|
|
monaspace-font = {
|
|
url = "github:githubnext/monaspace?rev=601eb27f902432999302e0e64db2daacc954f156";
|
|
flake = false;
|
|
};
|
|
fish-plugin-foreign-env = {
|
|
url = "github:oh-my-fish/plugin-foreign-env";
|
|
flake = false;
|
|
};
|
|
fish-plugin-fzf = {
|
|
url = "github:PatrickF1/fzf.fish";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, nix-darwin, home-manager, ... }:
|
|
let
|
|
system = "x86_64-darwin";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = { allowUnfree = true; };
|
|
};
|
|
in
|
|
{
|
|
darwinConfigurations."Abhinavs-MacBook-Pro" = nix-darwin.lib.darwinSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./configuration.nix
|
|
./homebrew.nix
|
|
home-manager.darwinModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.abhinav = import ./home.nix;
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
}
|
|
];
|
|
};
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [ (import home-manager { inherit pkgs; }).home-manager just ];
|
|
shellHook = ''
|
|
export NIXPKGS_PATH=${pkgs.path};
|
|
'';
|
|
};
|
|
};
|
|
}
|