Working Proxmox VM + jellyfin hw encoding
Some checks are pending
/ Build Nix targets (push) Waiting to run
Some checks are pending
/ Build Nix targets (push) Waiting to run
This commit is contained in:
parent
7dfa736c02
commit
79356b8671
2 changed files with 55 additions and 2 deletions
|
@ -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: []
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue