nix-config/packages/vm.nix

58 lines
1.2 KiB
Nix
Raw Normal View History

2024-06-05 19:28:10 +02:00
{
inputs,
outputs,
configLib,
...
}:
inputs.nixos-generators.nixosGenerate {
system = "x86_64-linux";
specialArgs = {inherit inputs outputs configLib;};
format = "qcow";
modules = [
inputs.home-manager.nixosModules.home-manager
../configs/nixos/sshd.nix
../configs/nixos/common.nix
../roles/nixos/vm.nix
({
config,
pkgs,
configLib,
modulesPath,
...
}: {
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
host.user = "gabe";
host.fullName = "Gabe Venberg";
2024-06-05 19:28:10 +02:00
users.users.root.password = "nixos";
2024-06-05 19:28:10 +02:00
users.users.${config.host.user} = {
password = "nixos";
2024-06-05 19:28:10 +02:00
};
home-manager.users.${config.host.user} = {
inputs,
osConfig,
...
}: {
host = osConfig.host;
user = {
git = {
profile = {
name = config.host.fullName;
2024-06-05 19:28:10 +02:00
email = "gabevenberg@gmail.com";
};
workProfile.enable = false;
};
};
imports = [
../roles/home-manager/minimal-terminal.nix
../configs/home-manager/common.nix
inputs.nixvim.homeManagerModules.nixvim
];
};
system.stateVersion = "24.05";
})
];
}