infrastructure/hosts/kinda.sus.lol/hardware-configuration.nix

36 lines
1.1 KiB
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/archive" = {
device = "//u203375.your-storagebox.de/backup/media_archive";
fsType = "cifs";
options = [ "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,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" ];
};
fileSystems."/sftp_jail/common/archive" = {
device = "/mnt/archive";
options = [ "bind,ro" ];
};
}