2024-07-29 23:09:42 -05:00
|
|
|
{
|
2024-09-03 21:24:20 -05:00
|
|
|
description = "Wyatt's nix configuration suite";
|
2024-07-29 23:09:42 -05:00
|
|
|
inputs = {
|
2024-09-07 00:52:43 -05:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin";
|
2024-07-29 23:09:42 -05:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
2024-09-03 21:24:20 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-07-29 23:09:42 -05:00
|
|
|
};
|
|
|
|
darwin = {
|
|
|
|
url = "github:lnl7/nix-darwin";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs @ {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
darwin,
|
|
|
|
home-manager,
|
|
|
|
...
|
|
|
|
}: let
|
2024-09-03 21:24:20 -05:00
|
|
|
userName = "wyatt";
|
|
|
|
userEmail = "wyatt@wyattjmiller.com";
|
2024-09-07 00:52:43 -05:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit userName userEmail;
|
|
|
|
};
|
2024-07-29 23:09:42 -05:00
|
|
|
in {
|
2024-09-03 21:24:20 -05:00
|
|
|
# Primary laptop - MacBook Pro (2023, M3)
|
|
|
|
darwinConfigurations."sephiroth" = darwin.lib.darwinSystem {
|
|
|
|
system = "aarch64-darwin";
|
2024-09-07 00:52:43 -05:00
|
|
|
specialArgs = {
|
|
|
|
inherit userName userEmail;
|
|
|
|
hostname = "sephiroth";
|
|
|
|
};
|
|
|
|
# nixpkgs = inputs.nixpkgs-darwin;
|
2024-07-29 23:09:42 -05:00
|
|
|
modules = [
|
|
|
|
./modules/nix-core.nix
|
2024-09-03 21:24:20 -05:00
|
|
|
./modules/darwinSystem.nix
|
2024-07-29 23:09:42 -05:00
|
|
|
./modules/apps.nix
|
|
|
|
./modules/host-users.nix
|
|
|
|
|
|
|
|
home-manager.darwinModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-09-07 00:52:43 -05:00
|
|
|
home-manager.extraSpecialArgs = extraSpecialArgs;
|
2024-09-03 21:24:20 -05:00
|
|
|
home-manager.users.${userName} = import ./home;
|
2024-07-29 23:09:42 -05:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-09-03 21:24:20 -05:00
|
|
|
# Primary desktop computer
|
|
|
|
nixosConfiguration."cloud" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2024-09-07 00:52:43 -05:00
|
|
|
specialArgs = {
|
|
|
|
inherit userName userEmail;
|
|
|
|
hostname = "cloud";
|
|
|
|
};
|
2024-09-03 21:24:20 -05:00
|
|
|
modules = [
|
|
|
|
/etc/nixos/configuration.nix
|
|
|
|
./modules/nix-core.nix
|
|
|
|
# ./modules/linuxSystem.nix
|
|
|
|
./modules/host-users.nix
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-09-07 00:52:43 -05:00
|
|
|
home-manager.extraSpecialArgs = extraSpecialArgs;
|
2024-09-03 21:24:20 -05:00
|
|
|
home-manager.users.${userName} = import ./home;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-29 23:09:42 -05:00
|
|
|
};
|
|
|
|
}
|