add laptop host
This commit is contained in:
@@ -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
18
hosts/laptop/default.nix
Normal 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;
|
||||
}
|
||||
33
hosts/laptop/hardware-configuration.nix
Normal file
33
hosts/laptop/hardware-configuration.nix
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user