threed hardware configuration

This commit is contained in:
Swarsel 2023-12-13 13:46:40 +01:00
parent 2545721862
commit d3d1635a8b
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 45 additions and 1 deletions

View file

@ -806,7 +806,7 @@ New setup for the SP3, this time using NixOS - another machine will take over th
{ {
<<gpg-agent>> <<gpgagent>>
home = { home = {
username = "swarsel"; username = "swarsel";

View file

@ -0,0 +1,39 @@
# 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/disk/by-uuid/4a590cad-28d9-4153-bdb8-e424ec3bd5c8";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/C67D-61AD";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/b07aac27-a443-489c-9fdb-01c1ef633699"; }
];
# 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.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -3,6 +3,11 @@
{ {
services.gpg-agent = {
enable = true;
enableSshSupport = true;
};
home = { home = {
username = "swarsel"; username = "swarsel";