Add other services
This commit is contained in:
parent
0bbb49efee
commit
ff8a4d23a9
10 changed files with 377 additions and 7 deletions
11
flake.nix
11
flake.nix
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue