snowflake/hosts/hime/hardware-configuration.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-31 11:58:43 -05:00
{
2023-04-23 17:45:37 -04:00
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
2023-01-31 11:58:43 -05:00
2023-04-23 17:45:37 -04:00
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
2023-01-31 11:58:43 -05:00
2023-04-23 17:45:37 -04:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/154e6059-35f9-49bb-b049-085b325ac997";
fsType = "ext4";
};
fileSystems."/home/oh/nas" = {
device = "192.168.1.71:/volume1/hime";
2023-02-16 23:23:43 -05:00
fsType = "nfs";
};
2023-04-23 17:45:37 -04:00
fileSystems."/home/oh/docker/nextcloud" = {
device = "192.168.1.71:/volume1/nextcloud";
2023-02-25 03:52:37 -05:00
fsType = "nfs";
};
2023-04-23 17:45:37 -04:00
fileSystems."/home/oh/docker/stash/data" = {
device = "192.168.1.71:/volume1/stash";
2023-02-25 03:52:37 -05:00
fsType = "nfs";
};
2023-01-31 11:58:43 -05:00
2023-04-23 17:45:37 -04:00
swapDevices = [
{device = "/dev/disk/by-uuid/15978bb3-da9b-4ec2-bd35-1716dd97812b";}
];
2023-01-31 11:58:43 -05:00
networking.useDHCP = lib.mkDefault true;
2023-04-23 17:45:37 -04:00
2023-01-31 11:58:43 -05:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}