# 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; networking.hostName = "posixlycorrect"; # Define your hostname. networking.networkmanager.enable = true; # Set your time zone. time.timeZone = "America/Costa_Rica"; # The global useDHCP flag is deprecated, therefore explicitly set to false here. # Per-interface useDHCP will be mandatory in the future, so this generated config # replicates the default behaviour. networking.useDHCP = false; networking.interfaces.enp7s0.useDHCP = true; networking.interfaces.wlp6s0.useDHCP = true; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; console = { font = "Lat2-Terminus16"; keyMap = "us"; }; # Enable the X11 windowing system. services.xserver = { enable = true; layout = "us"; libinput.enable = true; displayManager.startx.enable = true; }; hardware.opengl.enable = true; # Enable sound. sound.enable = true; hardware.pulseaudio.enable = true; programs.zsh.enable = true; environment.pathsToLink = [ "/share/zsh" ]; users = { users.fabian = { isNormalUser = true; uid = 1002; group = "fabian"; shell = pkgs.zsh; extraGroups = [ "users" "wheel" "networkmanager" "dialout" ]; }; groups.fabian.gid = 1002; }; # 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" ''; users.users.temp = { isNormalUser = true; extraGroups = [ "wheel" ]; }; nixpkgs.config.allowUnfree = true; nix = { package = pkgs.nixFlakes; extraOptions = '' experimental-features = nix-command flakes ''; }; hardware.opengl.driSupport32Bit = true; services.openssh.enable = true; system.stateVersion = "21.11"; # No tocar esto }