Add laptop configuration

This commit is contained in:
Joshua Yuen 2026-06-20 21:22:41 -04:00
parent c681e1ce5f
commit f329f8b501
Signed by: josh
GPG Key ID: 530DA0331EFE99F5
4 changed files with 76 additions and 0 deletions

View File

@ -49,6 +49,25 @@
in
{
nixosConfigurations = {
laptop = let
host = "laptop";
profile = "desktop";
username = "josh";
gpgSigningKey = "0x530DA0331EFE99F5";
in nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit host;
inherit profile;
inherit username;
inherit gpgSigningKey;
};
modules = [
./hosts/${host}
];
};
vm = let
host = "vm";
profile = "desktop";

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

@ -0,0 +1,15 @@
{
...
}:
{
imports = [
../../profiles/desktop
../../modules/core
../../modules/drivers
../../modules/options
./hardware.nix
./host-packages.nix
];
}

33
hosts/laptop/hardware.nix Normal file
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 = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/041a9bc5-aae2-44ec-bacf-7f6a08a696f9";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/79D1-97BE";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/82b669f5-d624-4a29-bf18-dd8bc453f537"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@ -0,0 +1,9 @@
{
pkgs,
...
}:
{
environment.systemPackages = with pkgs; [
];
}