This commit is contained in:
2026-05-08 14:40:12 +09:00
parent e81e3be023
commit 7d1436ac54
4 changed files with 62 additions and 28 deletions

View File

@@ -4,11 +4,10 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.availableKernelModules =
[ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelParams = [ "quiet" "modprobe.blacklist=dvb_usb_rtl28xxu" ];
@@ -20,26 +19,28 @@
options = [ "size=8G" "mode=1777" ];
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f4bf5b26-3959-4087-ad60-b5eaaf9c7cd5";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/f4bf5b26-3959-4087-ad60-b5eaaf9c7cd5";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-28e5a617-073a-4385-9fc2-f0620a8ead08".device = "/dev/disk/by-uuid/28e5a617-073a-4385-9fc2-f0620a8ead08";
boot.initrd.luks.devices."luks-28e5a617-073a-4385-9fc2-f0620a8ead08".device =
"/dev/disk/by-uuid/28e5a617-073a-4385-9fc2-f0620a8ead08";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/40B6-4877";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/40B6-4877";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/mnt/share" =
{ device = "/dev/disk/by-uuid/0D608CA53E06CE7A";
fsType = "ntfs-3g";
options = [ "rw" "uid=1000" "gid=100" "umask=022" ];
};
fileSystems."/mnt/share" = {
device = "/dev/disk/by-uuid/0D608CA53E06CE7A";
fsType = "ntfs-3g";
options = [ "rw" "uid=1000" "gid=100" "umask=022" ];
};
swapDevices = [ ];
swapDevices = [{ device = "/dev/disk/by-label/nix-swap"; }];
boot.resumeDevice = "/dev/disk/by-label/nix-swap";
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
@@ -51,5 +52,6 @@
services.udev.packages = [ pkgs.rtl-sdr ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}