2023-07-30 16:18:49 +00:00
|
|
|
|
# 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, system76, modulesPath, ... }:
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
2023-10-25 23:31:53 +00:00
|
|
|
|
in {
|
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2023-07-30 16:18:49 +00:00
|
|
|
|
|
2023-10-25 23:31:53 +00:00
|
|
|
|
boot.initrd.availableKernelModules =
|
|
|
|
|
[ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
2023-07-30 16:18:49 +00:00
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
|
2023-10-25 23:31:53 +00:00
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
2023-07-30 16:18:49 +00:00
|
|
|
|
|
|
|
|
|
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
|
|
|
|
|
2023-10-25 23:31:53 +00:00
|
|
|
|
fileSystems."/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/1a71ab59-b65c-4866-a76c-a1372cc30cb8";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
2023-07-30 16:18:49 +00:00
|
|
|
|
|
2023-10-25 23:31:53 +00:00
|
|
|
|
boot.initrd.luks.devices."luks-ad5fe721-9e57-45ae-bc7a-9724590d97e8".device =
|
|
|
|
|
"/dev/disk/by-uuid/ad5fe721-9e57-45ae-bc7a-9724590d97e8";
|
2023-07-30 16:18:49 +00:00
|
|
|
|
|
2023-10-25 23:31:53 +00:00
|
|
|
|
fileSystems."/boot/efi" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/36AD-6828";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
2023-07-30 16:18:49 +00:00
|
|
|
|
|
|
|
|
|
swapDevices =
|
2023-10-25 23:31:53 +00:00
|
|
|
|
[{ device = "/dev/disk/by-uuid/9ea6aaab-0e78-411f-90fa-5161d897419b"; }];
|
2023-07-30 16:18:49 +00:00
|
|
|
|
|
|
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
|
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
|
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
|
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.enp16s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.enp21s0u4.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2023-10-25 23:31:53 +00:00
|
|
|
|
hardware.cpu.amd.updateMicrocode =
|
|
|
|
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2023-07-30 16:18:49 +00:00
|
|
|
|
|
|
|
|
|
# for mira
|
2023-10-25 23:31:53 +00:00
|
|
|
|
hardware.system76.enableAll = true;
|
|
|
|
|
|
2024-05-26 20:21:45 +00:00
|
|
|
|
hardware.keyboard.zsa.enable = true;
|
|
|
|
|
|
2023-07-30 16:18:49 +00:00
|
|
|
|
}
|