上传文件至「/」

This commit is contained in:
2026-05-30 21:34:50 +08:00
parent 574e356a5a
commit e146cf6b8d
4 changed files with 69 additions and 32 deletions
+16 -7
View File
@@ -4,20 +4,29 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ ];
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "ehci_pci" "ahci" "sd_mod" "sr_mod" ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/a4dec1b6-8027-46c5-b143-0fc9ea1e2ef7";
fsType = "ext4";
{ device = "/dev/disk/by-uuid/b818ea33-5c41-4eeb-b7b9-7e1e3397964f";
fsType = "btrfs";
options = [ "subvol=@" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/b818ea33-5c41-4eeb-b7b9-7e1e3397964f";
fsType = "btrfs";
options = [ "subvol=@home" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/0115-3C19";
{ device = "/dev/disk/by-uuid/BF34-E3A0";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
@@ -25,5 +34,5 @@
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
virtualisation.virtualbox.guest.enable = true;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}