2023-04-12 12:47:22 +00:00
|
|
|
{ modulesPath, ... }:
|
|
|
|
{
|
|
|
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
|
|
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
fileSystems."/var/lib" = {
|
|
|
|
device = "/dev/disk/by-label/varlib";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
fileSystems."/mnt/data" = {
|
|
|
|
device = "/dev/disk/by-uuid/1147e812-b85d-4690-bbb1-d8ba5c398798";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
fileSystems."/mnt/archive" = {
|
|
|
|
device = "//u203375.your-storagebox.de/backup/media_archive";
|
|
|
|
fsType = "cifs";
|
2023-04-16 21:21:04 +00:00
|
|
|
options = [ "seal,iocharset=utf8,credentials=/root/.smbcredentials,uid=0,gid=993,file_mode=0775,dir_mode=0775,cache=loose" ];
|
2023-04-12 12:47:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Common mounts
|
|
|
|
|
|
|
|
fileSystems."/sftp_jail/common/media" = {
|
|
|
|
device = "/mnt/data/media";
|
|
|
|
options = [ "bind,ro" ];
|
|
|
|
};
|
2023-04-22 07:20:17 +00:00
|
|
|
|
|
|
|
services.qemuGuest.enable = true;
|
2023-04-12 12:47:22 +00:00
|
|
|
}
|