mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 18:33:55 -05:00
mandarin,mauville: migrate to nixhw
This commit is contained in:
parent
2c6cfaa41a
commit
18c5686d18
|
@ -479,11 +479,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1720302727,
|
||||
"narHash": "sha256-yVm+9LDzFpZNJIS0fuvm4Xjhn4o0gQjTlxWz+NZs4bQ=",
|
||||
"lastModified": 1720303103,
|
||||
"narHash": "sha256-gKShXeXvBkmVBk7gSmOe4dpQTfnPqUxq0NpJflOS89o=",
|
||||
"owner": "alyraffauf",
|
||||
"repo": "nixhw",
|
||||
"rev": "a63a1fa3443b8ba62a0db5bd2830717ac09d182e",
|
||||
"rev": "3c03f237fbd6d43c536bc0303986023cd06e9405",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -5,6 +5,13 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.nixhw.nixosModules.common-amd-cpu
|
||||
inputs.nixhw.nixosModules.common-amd-gpu
|
||||
inputs.nixhw.nixosModules.common-bluetooth
|
||||
inputs.nixhw.nixosModules.common-ssd
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd.availableKernelModules = ["nvme" "sd_mod" "usb_storage" "usbhid" "xhci_pci"];
|
||||
|
||||
|
@ -12,13 +19,4 @@
|
|||
};
|
||||
|
||||
hardware.enableAllFirmware = true;
|
||||
|
||||
ar.hardware = {
|
||||
enable = true;
|
||||
cpu.amd = true;
|
||||
gpu.amd = true;
|
||||
laptop = false;
|
||||
ssd = true;
|
||||
sound = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,16 +5,14 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.nixhw.nixosModules.common-amd-cpu
|
||||
inputs.nixhw.nixosModules.common-amd-gpu
|
||||
inputs.nixhw.nixosModules.common-bluetooth
|
||||
inputs.nixhw.nixosModules.common-ssd
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod"];
|
||||
|
||||
hardware.enableAllFirmware = true;
|
||||
|
||||
ar.hardware = {
|
||||
enable = true;
|
||||
cpu.amd = true;
|
||||
gpu.amd = true;
|
||||
laptop = false;
|
||||
ssd = true;
|
||||
sound = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
hardware.keyboard.qmk.enable = true;
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
|
@ -46,14 +48,14 @@
|
|||
rtkit.enable = true;
|
||||
};
|
||||
|
||||
hardware.keyboard.qmk.enable = true;
|
||||
|
||||
services.logind.extraConfig = ''
|
||||
# Don't shutdown when power button is short-pressed
|
||||
HandlePowerKey=suspend
|
||||
HandlePowerKeyLongPress=poweroff
|
||||
'';
|
||||
|
||||
sound.enable = true;
|
||||
|
||||
system.autoUpgrade = {
|
||||
allowReboot = true;
|
||||
dates = "04:00";
|
||||
|
|
Loading…
Reference in a new issue