dotfiles/nix/hardware/mini.nix
2026-04-12 22:38:09 +09:00

89 lines
1.5 KiB
Nix

{ pkgs
, inputs
, lib
, config
, ...
}:
{
imports = [
./common.nix
./nvidia.nix
];
fileSystems."/" = {
device = "/dev/disk/by-uuid/1ec7bbd6-cb83-427a-a901-d5fb7a4ef3ba";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/B19C-E7B1";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/mnt/d" = {
device = "/dev/sda1";
fsType = "exfat";
options = [
"users"
"exec"
"nofail"
];
};
fileSystems."/mnt/d/SteamLibrary/steamapps/compatdata" = {
device = "/home/kp2pml30/.local/share/Steam/steamapps/compatdata-d";
fsType = "none";
options = [
"bind"
"nofail"
];
};
swapDevices = [ { device = "/dev/disk/by-uuid/c68daa9f-f165-4e23-8710-2aab0ad8d282"; } ];
boot.kernelModules = [ "kvm-amd" ];
environment.systemPackages = with pkgs; [
exfat
pciutils
];
hardware.cpu.amd.updateMicrocode = true;
programs.nix-ld.enable = true;
home-manager.users.${config.kp2pml30.username}.programs.git.settings = {
user.signingkey = "0x1739F9D8BA250D04!";
commit.gpgsign = true;
tag.gpgSign = true;
};
hardware = {
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
];
extraPackages32 = with pkgs; [
];
};
nvidia.prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
nvidiaBusId = "PCI:5:0:0";
amdgpuBusId = "PCI:198:0:0";
};
};
networking = {
useDHCP = lib.mkDefault true;
};
virtualisation.docker.enable = true;
}