mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 08:33:55 -05:00
added hardware config and initial fixes for lavaridge deployment
This commit is contained in:
parent
faf6325e4e
commit
81c308006a
20
flake.nix
20
flake.nix
|
@ -31,16 +31,16 @@
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
# # Framework 13 with AMD Ryzen 7640U and 32GB RAM.
|
# Framework 13 with AMD Ryzen 7640U and 32GB RAM.
|
||||||
# lavaridge = nixpkgs-unstable.lib.nixosSystem {
|
lavaridge = nixpkgs-unstable.lib.nixosSystem {
|
||||||
# system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
# modules = [
|
modules = [
|
||||||
# nixos-hardware.nixosModules.framework-13-7040-amd
|
nixos-hardware.nixosModules.framework-13-7040-amd
|
||||||
# home-manager-unstable.nixosModules.home-manager
|
home-manager-unstable.nixosModules.home-manager
|
||||||
# ./hosts/lavaridge
|
./hosts/lavaridge
|
||||||
# ./desktop/gnome
|
./desktop/gnome
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
|
|
||||||
# T440p with i5-4210M and 16GB RAM.
|
# T440p with i5-4210M and 16GB RAM.
|
||||||
rustboro = nixpkgs-unstable.lib.nixosSystem {
|
rustboro = nixpkgs-unstable.lib.nixosSystem {
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
powerManagement.powertop.enable = true;
|
powerManagement.powertop.enable = true;
|
||||||
|
|
||||||
{
|
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
# we need fwupd 1.9.7 to downgrade the fingerprint sensor firmware
|
# we need fwupd 1.9.7 to downgrade the fingerprint sensor firmware
|
||||||
services.fwupd.package = (import (builtins.fetchTarball {
|
services.fwupd.package = (import (builtins.fetchTarball {
|
||||||
|
@ -33,7 +32,6 @@
|
||||||
}) {
|
}) {
|
||||||
inherit (pkgs) system;
|
inherit (pkgs) system;
|
||||||
}).fwupd;
|
}).fwupd;
|
||||||
}
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|
|
@ -7,4 +7,32 @@
|
||||||
imports =
|
imports =
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2a76d315-37f9-406d-b1b2-01fee209139a";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/7BC8-F615";
|
||||||
|
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.enp193s0f3u1c2.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue