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";
|
2024-06-05 20:39:25 +02:00
|
|
|
host.fullName = "Gabe Venberg";
|
2024-06-05 19:28:10 +02:00
|
|
|
|
2024-06-05 20:39:25 +02:00
|
|
|
users.users.root.password = "nixos";
|
2024-06-05 19:28:10 +02:00
|
|
|
users.users.${config.host.user} = {
|
2024-06-05 20:39:25 +02:00
|
|
|
password = "nixos";
|
2024-06-05 19:28:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.users.${config.host.user} = {
|
|
|
|
inputs,
|
|
|
|
osConfig,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
host = osConfig.host;
|
|
|
|
user = {
|
|
|
|
git = {
|
|
|
|
profile = {
|
2024-06-05 20:39:25 +02:00
|
|
|
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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|