nix-config/flake.nix

54 lines
1.3 KiB
Nix
Raw Normal View History

{
description = "Lars' MacBook Pro";
inputs = {
nixpkgs = {
2023-01-08 00:31:34 +00:00
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";
};
emacs-larstvei.url = "github:larstvei/dot-emacs";
};
outputs = { self, nixpkgs, darwin, home-manager, emacs-larstvei, ... }@inputs: {
darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
./modules/mac.nix
home-manager.darwinModule
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.larstvei = {
imports = [
{ _module.args = inputs; } # <- one could ask, why?
./modules/home.nix
];
};
};
}
({ config, pkgs, lib, ... }: {
services.nix-daemon.enable = true;
nixpkgs = {
2022-11-03 11:25:37 +00:00
config.allowUnfree = true;
2022-09-19 14:23:37 +00:00
overlays = with inputs; [
(final: prev: {
2022-11-20 14:24:29 +00:00
maude-mac = final.callPackage ./pkgs/maude-mac { };
2022-09-19 14:23:37 +00:00
})
];
};
})
];
};
};
}