add server config for os and home
This commit is contained in:
21
flake.nix
21
flake.nix
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2024/10/17 18:15:24 by tomoron #+# #+# #
|
||||
# Updated: 2024/10/19 18:54:48 by tomoron ### ########.fr #
|
||||
# Updated: 2024/10/31 20:22:15 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -40,6 +40,13 @@
|
||||
modules = [
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
server = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs; flakeName="server";};
|
||||
modules = [
|
||||
./configuration.nix
|
||||
./hosts/server.nix
|
||||
];
|
||||
};
|
||||
vbox = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;flakeName="vbox";};
|
||||
@ -114,6 +121,18 @@
|
||||
./home.nix
|
||||
./homes/desktop/home.nix
|
||||
];
|
||||
};
|
||||
server = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = {
|
||||
username = "${username}";
|
||||
homeDir = "${homeDir}";
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./home.nix
|
||||
./homes/server/home.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user