update on pc

This commit is contained in:
kp2pml30 2025-03-19 18:36:47 +04:00
parent 6f3eb7dbe2
commit 8ef03fdd80
8 changed files with 205 additions and 50 deletions

67
nix/hardware/mini.nix Normal file
View file

@ -0,0 +1,67 @@
{ pkgs
, inputs
, lib
, config
, ...
}:
{
imports = [ ./common.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"
];
};
swapDevices = [ { device = "/dev/disk/by-uuid/c68daa9f-f165-4e23-8710-2aab0ad8d282"; } ];
boot.kernelModules = [ "kvm-amd" ];
environment.systemPackages = with pkgs; [
exfat
];
hardware.cpu.amd.updateMicrocode = true;
programs.nix-ld.enable = true;
hardware = {
graphics = {
enable = true;
enable32Bit = true;
};
amdgpu.amdvlk = {
enable = true;
support32Bit.enable = true;
};
opengl.extraPackages = with pkgs; [
amdvlk
];
opengl.extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
};
networking = {
useDHCP = lib.mkDefault true;
};
}