nix-config/flake.nix

58 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,
nixpkgs,
home-manager,
nix-rosetta-builder,
emacs-larstvei,
...
}:
{
darwinConfigurations = {
larstvei-macbookpro = darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = { inherit emacs-larstvei; };
modules = [
home-manager.darwinModules.default
./hosts/macbook/configuration.nix
nix-rosetta-builder.darwinModules.default
{ nix-rosetta-builder.onDemand = true; }
];
};
};
nixosConfigurations.thinkpad = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit emacs-larstvei; };
modules = [
home-manager.nixosModules.default
./hosts/thinkpad/configuration.nix
];
};
};
}