2022-09-18 15:49:37 +00:00
|
|
|
{
|
|
|
|
description = "Lars' MacBook Pro";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs = {
|
2023-01-08 00:31:34 +00:00
|
|
|
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
};
|
2022-09-18 15:49:37 +00:00
|
|
|
darwin = {
|
|
|
|
url = "github:LnL7/nix-darwin";
|
2024-03-31 23:22:32 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
2024-03-31 23:22:32 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, darwin, home-manager, ... }@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 = [
|
|
|
|
./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
|
|
|
})
|
|
|
|
];
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|