Working Proxmox VM + jellyfin hw encoding
Some checks are pending
/ Build Nix targets (push) Waiting to run

This commit is contained in:
Théo Barnouin 2025-04-11 15:55:10 +02:00
parent 7dfa736c02
commit 79356b8671
2 changed files with 55 additions and 2 deletions

View file

@ -10,6 +10,44 @@ in {
enable = lib.mkEnableOption "Enable LXC container config";
};
config = lib.mkIf cfg.enable {
services.cloud-init.network.enable = true;
security.sudo.wheelNeedsPassword = false;
networking = {
dhcpcd.enable = false;
};
systemd.network.enable = true;
services = {
qemuGuest.enable = true;
cloud-init = {
enable = true;
network.enable = true;
config = ''
system_info:
distro: nixos
network:
renderers: [ 'networkd' ]
default_user:
name: ops
users:
- default
ssh_pwauth: false
chpasswd:
expire: false
cloud_init_modules:
- migrator
- seed_random
- growpart
- resizefs
cloud_config_modules:
- disk_setup
- mounts
- set-passwords
- ssh
cloud_final_modules: []
'';
};
};
};
}