2023-03-23 03:39:10 +01:00
|
|
|
|
### T14
|
|
|
|
|
|
|
|
|
|
# Edet this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration-custom.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
boot.tmpOnTmpfs = true;
|
2023-03-23 05:31:29 +01:00
|
|
|
|
#boot.kernelPackages = pkgs.linuxPackages_latest;
|
2023-03-23 03:39:10 +01:00
|
|
|
|
|
|
|
|
|
networking.hostName = "t14"; # Define your hostname.
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "America/Costa_Rica";
|
|
|
|
|
|
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
|
|
|
|
|
|
# esto es de la FGPA, eliminar cuando termine el curso
|
|
|
|
|
services.udev.extraRules = ''
|
|
|
|
|
# USB-Blaster
|
|
|
|
|
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6001", MODE="660", GROUP="dialout", TAG+="uaccess"
|
|
|
|
|
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6002", MODE="660", GROUP="dialout", TAG+="uaccess"
|
|
|
|
|
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6003", MODE="660", GROUP="dialout", TAG+="uaccess"
|
|
|
|
|
|
|
|
|
|
# USB-Blaster II
|
|
|
|
|
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6010", MODE="660", GROUP="dialout", TAG+="uaccess"
|
|
|
|
|
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6810", MODE="660", GROUP="dialout", TAG+="uaccess"
|
|
|
|
|
'';
|
2023-03-23 05:16:00 +01:00
|
|
|
|
|
|
|
|
|
services = {
|
|
|
|
|
fwupd.enable = true;
|
|
|
|
|
thinkfan.enable = true;
|
|
|
|
|
tlp.enable = true;
|
|
|
|
|
tp-auto-kbbl.enable =true;
|
|
|
|
|
};
|
|
|
|
|
|
2023-03-23 03:39:10 +01:00
|
|
|
|
}
|
|
|
|
|
|