diff --git a/flake.nix b/flake.nix index d1833d3..9d5960d 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,7 @@ specialArgs = { inherit inputs; }; modules = [ ./hosts/${hostname}.nix + ./hosts/hardware/${hostname}.nix ./common.nix home-manager.nixosModules.home-manager nix-flatpak.nixosModules.nix-flatpak diff --git a/hosts/hardware/FredOS-Macbook.nix b/hosts/hardware/FredOS-Macbook.nix new file mode 100644 index 0000000..a12536a --- /dev/null +++ b/hosts/hardware/FredOS-Macbook.nix @@ -0,0 +1,31 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/e295ac26-bf7e-4b93-bc97-74c3c01de0e3"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/F698-F2B7"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}