1
Fork 0
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:
RGBCube 2023-11-11 15:01:23 +03:00
parent 9dab3489e5
commit ed09581e5f
No known key found for this signature in database
3 changed files with 7 additions and 38 deletions

View file

@ -120,7 +120,6 @@
boot.tmp.cleanOnBoot = true; boot.tmp.cleanOnBoot = true;
networking.hostName = hostName; networking.hostName = hostName;
nixpkgs.hostPlatform = hostPlatform;
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;

View file

@ -1,6 +1,11 @@
{ lib, systemConfiguration, homeConfiguration, imports, ... }: lib.recursiveUpdate3 { lib, systemConfiguration, homeConfiguration, imports, ... }: lib.recursiveUpdate3
(systemConfiguration { (systemConfiguration {
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
system.stateVersion = "23.05"; system.stateVersion = "23.05";
}) })
@ -30,8 +35,9 @@
./steck ./steck
./fonts.nix ./fonts.nix
./hardware.nix
./localisation.nix ./localisation.nix
./packages.nix ./packages.nix
./users.nix ./users.nix
/etc/nixos/hardware-configuration.nix
]) ])

View file

@ -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";
}
];
}