Add other services

This commit is contained in:
Théo Barnouin 2024-09-09 15:19:57 +02:00
parent 0bbb49efee
commit ff8a4d23a9
10 changed files with 377 additions and 7 deletions

View file

@ -13,17 +13,18 @@
outputs = inputs@{ self, nixpkgs, home-manager, microvm, ... }:
let
hostName = "nixos";
system = "x86_64-linux";
username = "tbarnouin";
in
{
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
${hostName} = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
{
networking.hostName = "nixos";
networking.hostName = hostName;
}
home-manager.nixosModules.home-manager
{
@ -33,12 +34,12 @@
}
microvm.nixosModules.host
{
microvm = {
microvm = {
autostart = [
"nginx"
];
vms = {
nginx = {
nginx = {
flake = self;
updateFlake = "git+file:///etc/nixos";
};
@ -46,7 +47,7 @@
};
}
];
specialArgs = {
inherit inputs;
inherit username;