2024-11-10 15:47:39 +08:00
|
|
|
{
|
|
|
|
description = "NixOS configuration";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs@{ nixpkgs, home-manager, ... }: {
|
|
|
|
nixosConfigurations = {
|
|
|
|
# greynix - Gray Asus machine
|
|
|
|
greynix = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2025-01-05 11:49:14 +08:00
|
|
|
./nixosModules/base.nix
|
2025-01-01 21:22:01 +08:00
|
|
|
./hosts/greynix/configuration.nix
|
2025-01-05 11:56:09 +08:00
|
|
|
./nixosModules/docker.nix
|
2024-11-10 15:47:39 +08:00
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-11-10 20:28:45 +08:00
|
|
|
home-manager.users.elias = import ./home.nix;
|
2024-11-10 15:47:39 +08:00
|
|
|
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass
|
|
|
|
# arguments to home.nix
|
2024-11-10 20:28:45 +08:00
|
|
|
} #close home-manager
|
|
|
|
]; #close modules
|
|
|
|
}; #close greynix
|
|
|
|
|
2024-11-10 15:47:39 +08:00
|
|
|
# bluenix - Blue Acer machine
|
|
|
|
bluenix = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2025-01-05 11:49:14 +08:00
|
|
|
./nixosModules/base.nix
|
2024-12-30 11:29:14 +08:00
|
|
|
./hosts/bluenix/configuration.nix
|
2025-01-05 11:49:14 +08:00
|
|
|
./nixosModules/docker.nix
|
2024-11-10 15:47:39 +08:00
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-11-12 21:20:14 +08:00
|
|
|
home-manager.users.elias = import ./home.nix;
|
2024-11-10 15:47:39 +08:00
|
|
|
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass
|
|
|
|
# arguments to home.nix
|
2024-11-10 20:28:45 +08:00
|
|
|
} #close homemanager
|
|
|
|
]; #close modules
|
|
|
|
}; # close bluenix
|
2024-12-21 19:42:09 +08:00
|
|
|
|
|
|
|
# aspirenix - Grey Acer Aspire machine
|
2025-01-05 08:24:47 +08:00
|
|
|
# low spec machine - need to figure out how to change this config a bit
|
2024-12-21 19:42:09 +08:00
|
|
|
aspirenix = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2025-01-05 11:49:14 +08:00
|
|
|
./nixosModules/base.nix
|
2025-01-05 07:56:48 +08:00
|
|
|
./hosts/aspirenix/configuration.nix
|
2024-12-21 19:42:09 +08:00
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.elias = import ./home.nix;
|
|
|
|
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass
|
|
|
|
# arguments to home.nix
|
|
|
|
} #close homemanager
|
|
|
|
]; #close modules
|
|
|
|
}; # close bluenix
|
|
|
|
|
2024-11-10 20:28:45 +08:00
|
|
|
}; #close nixosconfigurations
|
|
|
|
}; #close outputs
|
2024-11-10 15:47:39 +08:00
|
|
|
}
|