add laptop host

This commit is contained in:
2026-03-25 15:05:39 +01:00
parent ece7ef6abe
commit 708146e37e
3 changed files with 52 additions and 1 deletions

View File

@@ -13,7 +13,7 @@
in {
nixosConfigurations = {
minipc = mkHost "minipc";
# laptop = mkHost "laptop";
laptop = mkHost "laptop";
# gaming = mkHost "gaming";
};
};

18
hosts/laptop/default.nix Normal file
View File

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

View File

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