configuration.nix/nixos/configs/laptop-hardware.nix
Ivan Kirilov Dimitrov 4a7b27602d
flake parts
Squashed commit of the following:

commit 054b92e5e3
Author: Ivan Kirilov Dimitrov <ivan@idimitrov.dev>
Date:   Tue Jun 18 11:53:54 2024 +0200

    enable browserpass

commit 05f5ca0f91
Author: Ivan Kirilov Dimitrov <ivan@idimitrov.dev>
Date:   Sun Jun 16 14:37:06 2024 +0200

    wifi

commit 1d42e5fd1e
Author: Ivan Kirilov Dimitrov <ivan@idimitrov.dev>
Date:   Wed Jun 12 23:19:58 2024 +0200

    making home work too

commit 472817d1da
Author: Ivan Kirilov Dimitrov <ivan@idimitrov.dev>
Date:   Tue Jun 11 19:32:58 2024 +0200

    making it work

commit 55e4c663f4
Author: Ivan Kirilov Dimitrov <ivan@idimitrov.dev>
Date:   Mon Jun 10 22:41:40 2024 +0200

    still working

commit 196683aceb
Author: Ivan Kirilov Dimitrov <ivan@idimitrov.dev>
Date:   Mon Jun 10 21:16:46 2024 +0200

    kinda working
2024-06-18 20:32:19 +02:00

39 lines
1.4 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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" "ahci" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/sda1";
fsType = "btrfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D76B-0BB3";
fsType = "vfat";
};
swapDevices = [ ];
# 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.enp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}