diff --git a/flake.nix b/flake.nix index 813928a..6222d5e 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ in { nixosConfigurations = { minipc = mkHost "minipc"; - # laptop = mkHost "laptop"; + laptop = mkHost "laptop"; # gaming = mkHost "gaming"; }; }; diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix new file mode 100644 index 0000000..0baf9ac --- /dev/null +++ b/hosts/laptop/default.nix @@ -0,0 +1,18 @@ +{ config, pkgs, inputs, ... }: +{ + imports = [ + ./hardware-configuration.nix + ../../modules/base.nix + ../../modules/dev + ../../modules/niri.nix + ../../modules/japanese.nix + ../../modules/gc.nix + ]; + + networking.hostName = "laptop"; + boot.kernelPackages = pkgs.linuxPackages_latest; + + services.thermald.enable = true; + services.power-profiles-daemon.enable = true; + hardware.bluetooth.enable = true; +} diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix new file mode 100644 index 0000000..fc8d984 --- /dev/null +++ b/hosts/laptop/hardware-configuration.nix @@ -0,0 +1,33 @@ +# 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 = [ "vmd" "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/1b123131-da9f-41d4-a9d0-67dbb50665c7"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/78E2-EDC2"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/e7718b12-72f6-4625-a2d9-f0f92edf6164"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}