summary refs log tree commit diff
path: root/hosts/vps/hardware-configuration.nix
blob: 2d9a5faa20da87148213ffb434cecd81368bfe76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  inputs,
  pkgs,
  lib,
  config,
  ...
}: {
     fileSystems = {
      "/" = {
        device = "none";
        fsType = "tmpfs";
        options = ["noexec" "defaults" "size=2G" "mode=755"];
      };
      "/nix" = {
        device = "/dev/disk/by-uuid/e4c4735d-bfdd-477f-bc43-d07510cb6a9a";
        fsType = "btrfs";
      };
      "/boot" = {
        device = "/dev/disk/by-uuid/7ea63707-099d-4c21-90eb-a51bfa6d8ba5";
        fsType = "ext4";
      };
    };

    swapDevices = [{device = "/dev/disk/by-uuid/00eb2d2e-4d7c-4e95-804d-e9ecb22679d4";}];

    zramSwap = {
      enable = true;
      algorithm = "zstd";
    };


    nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
    hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
    virtualisation.hypervGuest.enable = true;

}