petalius: inline hardware configuration
This commit is contained in:
parent
eccbfe2d4e
commit
1d6b0734b8
29
petalius.nix
29
petalius.nix
@ -3,7 +3,6 @@
|
|||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
/etc/nixos/hardware-configuration.nix
|
|
||||||
./common-headless.nix
|
./common-headless.nix
|
||||||
# ./sway.nix
|
# ./sway.nix
|
||||||
./i3.nix
|
./i3.nix
|
||||||
@ -16,6 +15,29 @@
|
|||||||
./unstable-nix.nix
|
./unstable-nix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
|
boot.kernelModules = [
|
||||||
|
"kvm-intel"
|
||||||
|
"rmi_smbus"
|
||||||
|
"i2c_hid"
|
||||||
|
"psmouse"
|
||||||
|
];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/c87491ed-0dd6-4eb4-bef2-fe4c707e91f2";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/E526-BAB7";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
nix.maxJobs = 4;
|
||||||
|
|
||||||
environment.etc."lvm/lvm.conf".text = ''
|
environment.etc."lvm/lvm.conf".text = ''
|
||||||
devices {
|
devices {
|
||||||
issue_discards = 1
|
issue_discards = 1
|
||||||
@ -85,11 +107,6 @@
|
|||||||
# "psmouse.synaptics_intertouch=1"
|
# "psmouse.synaptics_intertouch=1"
|
||||||
"psmouse.proto=imps"
|
"psmouse.proto=imps"
|
||||||
];
|
];
|
||||||
boot.kernelModules = [
|
|
||||||
"rmi_smbus"
|
|
||||||
"i2c_hid"
|
|
||||||
"psmouse"
|
|
||||||
];
|
|
||||||
|
|
||||||
# time.timeZone = pkgs.lib.mkOverride 10 "Asia/Tokyo";
|
# time.timeZone = pkgs.lib.mkOverride 10 "Asia/Tokyo";
|
||||||
# time.timeZone = pkgs.lib.mkOverride 10 "Europe/London";
|
# time.timeZone = pkgs.lib.mkOverride 10 "Europe/London";
|
||||||
|
Loading…
Reference in New Issue
Block a user