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-10-30 21:41:50 -05:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-09-08 15:44:14 -05:00
|
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
|
2024-10-30 21:41:50 -05:00
|
|
|
nix-ld.url = "github:Mic92/nix-ld";
|
2024-07-29 23:09:42 -05:00
|
|
|
home-manager = {
|
2024-11-03 21:44:23 -06:00
|
|
|
url = "github:nix-community/home-manager";
|
2024-09-03 21:24:20 -05:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-07-29 23:09:42 -05:00
|
|
|
};
|
|
|
|
darwin = {
|
2024-11-03 21:44:23 -06:00
|
|
|
url = "github:lnl7/nix-darwin/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-07-29 23:09:42 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs @ {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2024-09-08 15:44:14 -05:00
|
|
|
nix-flatpak,
|
2024-10-30 21:41:50 -05:00
|
|
|
nix-ld,
|
2024-07-29 23:09:42 -05:00
|
|
|
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 = {
|
2024-11-03 21:44:23 -06:00
|
|
|
inherit userName userEmail;
|
2024-09-07 00:52:43 -05:00
|
|
|
};
|
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";
|
|
|
|
};
|
2024-07-29 23:09:42 -05:00
|
|
|
modules = [
|
2024-11-05 18:46:59 -06:00
|
|
|
./modules/common/core.nix
|
|
|
|
./modules/common/users.nix
|
2024-10-30 21:41:50 -05:00
|
|
|
./modules/machine/sephiroth/configuration.nix
|
|
|
|
./modules/machine/sephiroth/apps.nix
|
2024-07-29 23:09:42 -05:00
|
|
|
|
|
|
|
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
|
2024-09-08 18:13:11 -05:00
|
|
|
nixosConfigurations."cloud" = nixpkgs.lib.nixosSystem {
|
2024-09-03 21:24:20 -05:00
|
|
|
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 = [
|
2024-10-30 21:41:50 -05:00
|
|
|
nix-flatpak.nixosModules.nix-flatpak
|
|
|
|
nix-ld.nixosModules.nix-ld
|
2024-11-05 18:46:59 -06:00
|
|
|
./modules/common/core.nix
|
|
|
|
./modules/common/users.nix
|
2024-10-30 21:41:50 -05:00
|
|
|
./modules/machine/cloud/hardware-configuration.nix
|
|
|
|
./modules/machine/cloud/configuration.nix
|
2024-09-03 21:24:20 -05:00
|
|
|
|
|
|
|
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-08 15:44:14 -05:00
|
|
|
home-manager.users.${userName}.imports = [
|
|
|
|
./home
|
|
|
|
];
|
2024-09-03 21:24:20 -05:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-10-30 21:41:50 -05:00
|
|
|
|
|
|
|
# Apartment appliance server
|
|
|
|
nixosConfigurations."valefor" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {
|
|
|
|
inherit userName userEmail;
|
|
|
|
hostname = "valefor";
|
|
|
|
};
|
|
|
|
# modules = [
|
|
|
|
# nix-ld.nixosModules.nix-ld
|
|
|
|
# ./modules/nix-core.nix
|
|
|
|
# ./modules/host-users.nix
|
|
|
|
#
|
|
|
|
# home-manager.nixosModules.home-manager
|
|
|
|
# {
|
|
|
|
# home-manager.useGlobalPkgs = true;
|
|
|
|
# home-manager.useUserPackages = true;
|
|
|
|
# home-manager.extraSpecialArgs = extraSpecialArgs;
|
|
|
|
# home-manager.users.${userName}.imports = [
|
|
|
|
# ./home
|
|
|
|
# ];
|
|
|
|
# }
|
|
|
|
# ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Storage, status, game, and media server
|
|
|
|
nixosConfigurations."ixion" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = {
|
|
|
|
inherit userName userEmail;
|
|
|
|
hostname = "ixion";
|
|
|
|
};
|
|
|
|
# modules = [
|
|
|
|
# nix-flatpak.nixosModules.nix-flatpak
|
|
|
|
# nix-ld.nixosModules.nix-ld
|
|
|
|
# ./modules/nixos/hardware-configuration.nix
|
|
|
|
# ./modules/nix-core.nix
|
|
|
|
# ./modules/nixos/configuration.nix
|
|
|
|
# ./modules/host-users.nix
|
|
|
|
#
|
|
|
|
# home-manager.nixosModules.home-manager
|
|
|
|
# {
|
|
|
|
# home-manager.useGlobalPkgs = true;
|
|
|
|
# home-manager.useUserPackages = true;
|
|
|
|
# home-manager.extraSpecialArgs = extraSpecialArgs;
|
|
|
|
# home-manager.users.${userName}.imports = [
|
|
|
|
# ./home
|
|
|
|
# ];
|
|
|
|
# }
|
|
|
|
# ];
|
|
|
|
};
|
2024-07-29 23:09:42 -05:00
|
|
|
};
|
|
|
|
}
|