From ca2f36d827dd4f98a066efee3773e40ca323a5bd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 23 Jun 2022 20:49:39 +0200 Subject: prefect: migrate system config to prefect (for flakes) --- system/prefect.nix | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/system/prefect.nix b/system/prefect.nix index 434c1301..0533e98a 100644 --- a/system/prefect.nix +++ b/system/prefect.nix @@ -1,7 +1,6 @@ { config, pkgs, ... }: { imports = [ - ./hardware-configuration.nix @@ -53,9 +52,28 @@ zenpower ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + fileSystems = { - "/".options = [ "atgc" "gc_merge" "lazytime" ]; - "/home".options = [ "atgc" "gc_merge" "lazytime" ]; + "/" = { + device = "/dev/disk/by-uuid/05d67a65-56ad-4c55-98dc-93cec95e34ae"; + fsType = "f2fs"; + options = [ "atgc" "gc_merge" "lazytime" ]; + }; + + "/boot" = { + device = "/dev/disk/by-uuid/7034-6991"; + fsType = "vfat"; + }; + + "/home" = { + device = "/dev/disk/by-uuid/0128f7e2-8247-435a-bc30-904574d7bf8c"; + fsType = "f2fs"; + options = [ "atgc" "gc_merge" "lazytime" ]; + }; + "/mnt/data" = { device = "/dev/disk/by-uuid/52E422C5E422AAE5"; fsType = "ntfs3"; @@ -75,6 +93,8 @@ }; }; + swapDevices = [ { label = "swap"; discardPolicy = "once"; } ]; + services.xserver = { xautolock.enable = pkgs.lib.mkForce false; }; -- cgit 1.4.1