From 1fc9b853d174da403e5cc96faea7d83928e19ae9 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Mon, 22 Nov 2021 00:08:49 +0100 Subject: [PATCH] change to btrfs on mc4 --- systems/mc4/hardware-configuration.nix | 29 +++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/systems/mc4/hardware-configuration.nix b/systems/mc4/hardware-configuration.nix index 68950e0..72528c3 100644 --- a/systems/mc4/hardware-configuration.nix +++ b/systems/mc4/hardware-configuration.nix @@ -1,18 +1,37 @@ -{ modulesPath, ... }: +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + { - imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "usbhid" ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/7081c92b-d474-49d9-a3d5-8285e7b92b62"; + fsType = "btrfs"; + options = [ "compress-force=zstd:7" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/C2EB-7223"; + fsType = "vfat"; + }; + + swapDevices = [ ]; boot.loader.grub = { efiSupport = true; efiInstallAsRemovable = true; device = "nodev"; }; - fileSystems."/boot" = { device = "/dev/disk/by-uuid/C2EB-7223"; fsType = "vfat"; }; boot.initrd.kernelModules = [ "nvme" ]; - fileSystems."/" = { device = "/dev/sda3"; fsType = "xfs"; }; networking = { useDHCP = false; interfaces.enp0s3.useDHCP = true; hostName = "mc4"; }; + } -# vim: set et ts=2 sw=2 ai: