34 lines
975 B
Nix
34 lines
975 B
Nix
{ 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/game_archive" = {
|
|
device = "//u360073-sub1.your-storagebox.de/u360073-sub1";
|
|
fsType = "cifs";
|
|
options = [ "seal,iocharset=utf8,credentials=/root/.smbcredentials,uid=0,gid=993,file_mode=0775,dir_mode=0775,cache=loose" ];
|
|
};
|
|
|
|
# Common mounts
|
|
|
|
fileSystems."/sftp_jail/common/media" = {
|
|
device = "/mnt/data/media";
|
|
options = [ "bind,ro" ];
|
|
};
|
|
|
|
services.qemuGuest.enable = true;
|
|
}
|