nix-config/flake.nix

63 lines
1.4 KiB
Nix

{
description = "My nix configuration.";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-rosetta-builder = {
url = "github:cpick/nix-rosetta-builder";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs-larstvei.url = "github:larstvei/emacs-flake";
};
outputs =
{
darwin,
home-manager,
nix-rosetta-builder,
emacs-larstvei,
...
}:
{
darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = { inherit emacs-larstvei; };
modules = [
./modules/core.nix
./modules/macos.nix
nix-rosetta-builder.darwinModules.default
{
nix-rosetta-builder.onDemand = true;
}
home-manager.darwinModules.default
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit emacs-larstvei; };
users.larstvei = {
imports = [
./modules/home.nix
];
};
};
}
];
};
};
}