2023-03-23 03:39:10 +01:00
|
|
|
|
#### BASE
|
|
|
|
|
|
2022-03-17 08:05:27 +01:00
|
|
|
|
# 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, ... }:
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
# 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.
|
2022-03-22 06:05:56 +01:00
|
|
|
|
services.xserver = {
|
|
|
|
|
enable = true;
|
|
|
|
|
layout = "us";
|
|
|
|
|
libinput.enable = true;
|
|
|
|
|
displayManager.startx.enable = true;
|
|
|
|
|
};
|
2022-03-17 08:05:27 +01:00
|
|
|
|
|
2022-06-07 20:57:54 +02:00
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
|
|
2022-03-17 08:05:27 +01:00
|
|
|
|
# Enable sound.
|
|
|
|
|
sound.enable = true;
|
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
|
2022-03-17 09:22:17 +01:00
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
environment.pathsToLink = [ "/share/zsh" ];
|
|
|
|
|
|
|
|
|
|
users = {
|
|
|
|
|
users.fabian = {
|
|
|
|
|
isNormalUser = true;
|
2022-08-26 07:04:23 +02:00
|
|
|
|
uid = 1002; # nunca cambiar mi ID de usuario
|
2022-03-17 09:22:17 +01:00
|
|
|
|
group = "fabian";
|
|
|
|
|
shell = pkgs.zsh;
|
2022-08-17 12:00:50 +02:00
|
|
|
|
extraGroups = [ "users" "wheel" "networkmanager" "dialout" "libvirtd" ];
|
2022-03-17 09:22:17 +01:00
|
|
|
|
};
|
|
|
|
|
groups.fabian.gid = 1002;
|
2022-03-17 08:05:27 +01:00
|
|
|
|
};
|
2022-03-17 09:00:17 +01:00
|
|
|
|
|
2022-03-17 08:05:27 +01:00
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
2022-08-17 12:00:50 +02:00
|
|
|
|
virtualisation.libvirtd.qemu.package = pkgs.qemu_kvm;
|
|
|
|
|
virtualisation.libvirtd.qemu.ovmf.enable = true;
|
2023-02-13 16:26:28 +01:00
|
|
|
|
virtualisation.libvirtd.qemu.ovmf.packages = [ pkgs.OVMFFull.fd ];
|
2022-08-17 12:00:50 +02:00
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
# boot.kernelModules = [ "vfio" "vfio_iommu_type1" "vfio_pci" "vfio_virqfd" ];
|
|
|
|
|
# boot.kernelParams = [ "amd_iommu=on" "iommu=pt" "vfio-pci.ids=1002:699f,1002:aae0" "video=efifb:off" ];
|
|
|
|
|
virtualisation.libvirtd.onBoot = "start";
|
|
|
|
|
|
2022-03-17 08:05:27 +01:00
|
|
|
|
nix = {
|
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
|
extraOptions = ''
|
2023-03-23 03:39:10 +01:00
|
|
|
|
experimental-features = nix-command flakes repl-flake
|
2022-03-17 08:05:27 +01:00
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2022-03-24 07:55:31 +01:00
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
2022-03-17 08:05:27 +01:00
|
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
2022-03-17 09:00:17 +01:00
|
|
|
|
system.stateVersion = "21.11"; # No tocar esto
|
2022-03-17 08:05:27 +01:00
|
|
|
|
|
2023-03-23 03:39:10 +01:00
|
|
|
|
services.fprintd.enable = true;
|
|
|
|
|
|
2023-03-23 04:27:20 +01:00
|
|
|
|
xdg = {
|
|
|
|
|
enable = true;
|
|
|
|
|
configFile."nixpkgs".source = mkOutOfStoreSymlink config.nix.registry."system".to.path;
|
|
|
|
|
};
|
|
|
|
|
|
2022-03-17 08:05:27 +01:00
|
|
|
|
}
|
|
|
|
|
|