seprate hosts in submodules and started adding desktop pc configuration

This commit is contained in:
2024-10-17 18:23:05 +02:00
parent af79ebb579
commit 2d3d965304
10 changed files with 78 additions and 18 deletions

View File

@ -1,3 +1,15 @@
# **************************************************************************** #
# #
# ::: :::::::: #
# flake.nix :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/17 18:15:24 by tomoron #+# #+# #
# Updated: 2024/10/17 18:15:26 by tomoron ### ########.fr #
# #
# **************************************************************************** #
{
description = "Nixos and home-manager config flake";
@ -21,26 +33,30 @@
default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs; flakeName="default";};
modules = [
./hardware-configuration.nix
./configuration.nix
];
};
vbox = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;flakeName="vbox";};
modules = [
./hardware-configuration.nix
./configuration.nix
./hosts/vbox/configuration.nix
./hosts/vbox.nix
];
};
laptop = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;flakeName="laptop";};
modules = [
./hardware-configuration.nix
./configuration.nix
./hosts/laptop/configuration.nix
./hosts/laptop.nix
nixos-hardware.nixosModules.asus-zephyrus-ga401
];
};
desktop = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;flakeName="laptop";};
modules = [
./configuration.nix
./hosts/desktop.nix
];
};
};