2022-09-18 15:49:37 +00:00
|
|
|
{
|
2024-10-05 23:03:31 +00:00
|
|
|
description = "My nix configuration.";
|
2022-09-18 15:49:37 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
2024-07-20 12:19:03 +00:00
|
|
|
emacs-larstvei.url = "github:larstvei/emacs-flake";
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
|
|
|
|
2024-10-06 19:53:29 +00:00
|
|
|
outputs =
|
2024-10-06 21:53:03 +00:00
|
|
|
{
|
|
|
|
darwin,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
...
|
|
|
|
}@inputs:
|
|
|
|
let
|
|
|
|
homeConfig = {
|
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.larstvei = {
|
|
|
|
imports = [
|
|
|
|
{ _module.args = inputs; }
|
|
|
|
./modules/home.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2024-10-06 19:53:29 +00:00
|
|
|
{
|
|
|
|
darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem {
|
|
|
|
system = "aarch64-darwin";
|
2022-09-18 15:49:37 +00:00
|
|
|
|
2024-10-06 19:53:29 +00:00
|
|
|
modules = [
|
2024-10-06 21:53:03 +00:00
|
|
|
./hosts/darwin-m1/configuration.nix
|
2024-10-06 19:53:29 +00:00
|
|
|
./modules/core.nix
|
2024-10-05 23:03:31 +00:00
|
|
|
|
2024-10-06 19:53:29 +00:00
|
|
|
home-manager.darwinModule
|
2024-10-06 21:53:03 +00:00
|
|
|
homeConfig
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nixosConfigurations."larstvei-nixos" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux"; # Or "aarch64-linux" for ARM systems
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
./hosts/nixos-intel-mbp/configuration.nix
|
|
|
|
./modules/core.nix
|
|
|
|
|
|
|
|
home-manager.nixosModule
|
|
|
|
homeConfig
|
2024-10-06 19:53:29 +00:00
|
|
|
];
|
|
|
|
};
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
|
|
|
}
|