Added: Qemu Host Config

This commit is contained in:
2025-04-04 09:45:57 +02:00
parent 98982085c9
commit 6fe4d10ac8
4 changed files with 149 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
{
description = "NixOS configuration of Ryan Yin";
description = "NixOS configuration of DerGrumpf";
##################################################################################################################
#
@@ -44,13 +44,19 @@
home-manager,
...
}: {
packages.x86_64-linux.default = self.nixosConfigurations.iso.config.system.build.isoImage;
nixosConfigurations = {
iso = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ pkgs, modulesPath, ... }: {
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
environment.systemPackages = [ pkgs.neovim pkgs.git ];
environment.systemPackages = with pkgs; [
neovim
git
wget
curl
];
})
];
};
@@ -77,6 +83,29 @@
}
];
};
qemu = let
username = "phil";
specialArgs = {inherit username;};
in
nixpkgs.lib.nixosSystem {
inherit specialArgs;
system = "x86_64-linux";
modules = [
./hosts/m920q
./users/${username}/nixos.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs // specialArgs;
home-manager.users.${username} = import ./users/${username}/home.nix;
}
];
};
};
};
}