refactor(nixosmodules): move boot config to module
This commit is contained in:
parent
2d29c8ffef
commit
5bef7c46a6
9 changed files with 61 additions and 57 deletions
|
@ -1,11 +1,11 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
../configs/bootloaders/systemd-boot.nix
|
||||
../configs/filesystems/impermanence.nix
|
||||
../configs/services.nix
|
||||
];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
boot-config.bootloader = "systemd-boot";
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
imports =
|
||||
[
|
||||
../nixosModules
|
||||
../configs/boot.nix
|
||||
../configs/security.nix
|
||||
../configs/users.nix
|
||||
../configs/networking.nix
|
||||
|
@ -15,4 +14,5 @@
|
|||
];
|
||||
nixosModules.enable = true;
|
||||
nix-config.enable = true;
|
||||
boot-config.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../configs/bootloaders/systemd-boot.nix
|
||||
../configs/filesystems/impermanence.nix
|
||||
inputs.nixos-hardware.nixosModules.microsoft-surface-go
|
||||
];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
|
@ -6,7 +6,6 @@
|
|||
}:
|
||||
{
|
||||
imports = [
|
||||
../configs/bootloaders/systemd-boot.nix
|
||||
../configs/filesystems/hw-nemesis.nix
|
||||
../configs/hardware/nvidia.nix
|
||||
../configs/hardware/powermanagement.nix
|
||||
|
@ -15,4 +14,5 @@
|
|||
boot.kernelModules = [ "kvm-amd" ];
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
boot-config.bootloader = "systemd-boot";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue