move imports, options
This commit is contained in:
parent
2764393d06
commit
c6eefbb5bc
9 changed files with 14 additions and 36 deletions
|
@ -1,18 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
isEnabled = config.my.hardware.common-desktop.enable;
|
||||
in {
|
||||
imports = [
|
||||
];
|
||||
|
||||
options.my.hardware.common-desktop = {
|
||||
enable = lib.mkEnableOption "common desktop hardware settings";
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
{lib, ...}: {
|
||||
config = {
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
|
|
@ -6,7 +6,6 @@ hostName: {
|
|||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
(builtins.toString ./. + "/${hostName}.nix")
|
||||
./common-desktop.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{...}: {
|
||||
config = {
|
||||
my.hardware.common-desktop.enable = true;
|
||||
imports = [
|
||||
./common-desktop.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
boot = {
|
||||
initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
|
||||
initrd.kernelModules = [];
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{...}: {
|
||||
config = {
|
||||
my.hardware.common-desktop.enable = true;
|
||||
imports = [
|
||||
./common-desktop.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
boot = {
|
||||
initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod"]; # "usb_storage"
|
||||
initrd.kernelModules = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue