From e9fdef46043244e0bc8174bc0918c51bfc506ec7 Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 22 Apr 2024 18:48:07 -0400 Subject: [PATCH] ame: update disko --- hosts/ame/disko-config.nix | 4 ++-- hosts/ame/hardware.nix | 21 +++++---------------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/hosts/ame/disko-config.nix b/hosts/ame/disko-config.nix index e69131f..6895ac3 100644 --- a/hosts/ame/disko-config.nix +++ b/hosts/ame/disko-config.nix @@ -1,8 +1,8 @@ { disko.devices = { disk = { - vdb = { - device = "/dev/vda"; + sda = { + device = "/dev/sda"; type = "disk"; content = { type = "gpt"; diff --git a/hosts/ame/hardware.nix b/hosts/ame/hardware.nix index fdde3e6..3fd0b57 100644 --- a/hosts/ame/hardware.nix +++ b/hosts/ame/hardware.nix @@ -27,24 +27,13 @@ }; }; - fileSystems = { - "/" = { - device = "/dev/disk/by-uuid/57411820-f154-497e-9c7e-dfcb1f21c5cf"; - fsType = "ext4"; - }; - "/boot/efi" = { - device = "/dev/disk/by-uuid/4D09-1D57"; - fsType = "vfat"; - }; - "/nas/restic" = { - device = "192.168.1.199:/mnt/Sutoreji/nix-restic-data/ame"; - fsType = "nfs"; - }; + zramSwap = { + enable = true; + swapDevices = 1; + memoryPercent = 50; + algorithm = "zstd"; }; - swapDevices = [ - {device = "/dev/disk/by-uuid/4f69ab31-f6a9-4799-92f1-5abbe0dc9180";} - ]; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";