72 lines
2.2 KiB
Nix
72 lines
2.2 KiB
Nix
{
|
|
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 = [
|
|
./base.nix
|
|
./hosts/greynix/configuration.nix
|
|
|
|
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 home-manager
|
|
]; #close modules
|
|
}; #close greynix
|
|
|
|
# bluenix - Blue Acer machine
|
|
bluenix = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./base.nix
|
|
./hosts/bluenix/configuration.nix
|
|
|
|
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
|
|
|
|
# aspirenix - Grey Acer Aspire machine
|
|
# low spec machine - need to figure out how to change this config a bit
|
|
aspirenix = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./base.nix
|
|
./hosts/aspirenix/configuration.nix
|
|
|
|
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
|
|
|
|
}; #close nixosconfigurations
|
|
}; #close outputs
|
|
}
|