nix-config/flake.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

{
2024-10-05 23:03:31 +00:00
description = "My nix configuration.";
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";
};
2024-07-20 12:19:03 +00:00
emacs-larstvei.url = "github:larstvei/emacs-flake";
};
2024-07-20 12:23:30 +00:00
outputs = { self, nixpkgs, darwin, home-manager, emacs-larstvei, ... }@inputs: {
darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
2024-10-05 23:03:31 +00:00
./modules/core.nix
./modules/mac.nix
2024-10-05 23:03:31 +00:00
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;
})
];
};
};
}