mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Use /etc/nixos for hardware config
This commit is contained in:
parent
9dab3489e5
commit
ed09581e5f
3 changed files with 7 additions and 38 deletions
|
@ -120,7 +120,6 @@
|
|||
boot.tmp.cleanOnBoot = true;
|
||||
|
||||
networking.hostName = hostName;
|
||||
nixpkgs.hostPlatform = hostPlatform;
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
{ lib, systemConfiguration, homeConfiguration, imports, ... }: lib.recursiveUpdate3
|
||||
|
||||
(systemConfiguration {
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot.enable = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
})
|
||||
|
||||
|
@ -30,8 +35,9 @@
|
|||
./steck
|
||||
|
||||
./fonts.nix
|
||||
./hardware.nix
|
||||
./localisation.nix
|
||||
./packages.nix
|
||||
./users.nix
|
||||
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
])
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
{ systemConfiguration, enabled, ... }:
|
||||
|
||||
systemConfiguration {
|
||||
hardware.enableAllFirmware = true;
|
||||
powerManagement.cpuFreqGovernor = "performance";
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ahci"
|
||||
"rtsx_pci_sdmmc"
|
||||
"sd_mod"
|
||||
"sr_mod"
|
||||
"usbhid"
|
||||
"xhci_pci"
|
||||
];
|
||||
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot = enabled {};
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/cc473c12-94a9-4399-a0ab-f080f9e786f6";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/D1F5-D862";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/dev/disk/by-uuid/f3a15cd2-9897-4867-9414-d4a8c3e71caf";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue