255 lines
6.5 KiB
Nix
255 lines
6.5 KiB
Nix
# Edit 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, inputs, pkgsTermius, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ # Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
./system/tlp.nix
|
||
./system/huella.nix
|
||
./user/ios.nix
|
||
./system/docker.nix
|
||
./system/pipewire.nix
|
||
# ./system/keyring.nix
|
||
# ./system/gnome.nix
|
||
./system/hyprland.nix
|
||
./user/logind.nix
|
||
];
|
||
|
||
# Bootloader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
boot.loader.systemd-boot.configurationLimit = 15;
|
||
|
||
networking.hostName = "nixos"; # Define your hostname.
|
||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||
|
||
# Configure network proxy if necessary
|
||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||
|
||
# Enable networking
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "America/Santiago";
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_US.UTF-8";
|
||
|
||
i18n.extraLocaleSettings = {
|
||
LC_ADDRESS = "es_CL.UTF-8";
|
||
LC_IDENTIFICATION = "es_CL.UTF-8";
|
||
LC_MEASUREMENT = "es_CL.UTF-8";
|
||
LC_MONETARY = "es_CL.UTF-8";
|
||
LC_NAME = "es_CL.UTF-8";
|
||
LC_NUMERIC = "es_CL.UTF-8";
|
||
LC_PAPER = "es_CL.UTF-8";
|
||
LC_TELEPHONE = "es_CL.UTF-8";
|
||
LC_TIME = "es_CL.UTF-8";
|
||
};
|
||
|
||
# Enable the X11 windowing system.
|
||
# services.xserver.enable = true;
|
||
|
||
# Enable the GNOME Desktop Environment.
|
||
# services.displayManager.gdm.enable = true;
|
||
# services.desktopManager.gnome.enable = true;
|
||
|
||
# Configure keymap in X11
|
||
services.xserver.xkb = {
|
||
layout = "latam";
|
||
variant = "";
|
||
};
|
||
|
||
# Configure console keymap
|
||
console.keyMap = "la-latin1";
|
||
|
||
# Enable CUPS to print documents.
|
||
services.printing.enable = true;
|
||
|
||
# Enable touchpad support (enabled default in most desktopManager).
|
||
# services.xserver.libinput.enable = true;
|
||
|
||
|
||
# Configure Cachix and trusted users
|
||
nix.settings.trusted-users = [ "root" "jose" "@wheel" ];
|
||
nix.settings.substituters = [
|
||
"https://cache.nixos.org/"
|
||
"https://vicinae.cachix.org"
|
||
"https://hyprland.cachix.org"
|
||
];
|
||
nix.settings.trusted-substituters = [
|
||
"https://cache.nixos.org/"
|
||
"https://vicinae.cachix.org"
|
||
"https://hyprland.cachix.org"
|
||
];
|
||
|
||
nix.settings.trusted-public-keys = [
|
||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
|
||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||
];
|
||
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.jose = {
|
||
isNormalUser = true;
|
||
description = "jose";
|
||
extraGroups = [ "networkmanager" "wheel" "docker" "audio"];
|
||
packages = with pkgs; [
|
||
thunderbird
|
||
saber
|
||
hplip
|
||
btop
|
||
|
||
];
|
||
};
|
||
|
||
|
||
# Install firefox.
|
||
programs.firefox.enable = true;
|
||
|
||
# Allow unfree packages
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
# List packages installed in system profile. To search, run:
|
||
# $ nix search wget
|
||
environment.systemPackages = (with pkgs; [
|
||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||
neovim
|
||
vivaldi
|
||
# inputs.zen-browser.packages.${pkgs.system}.twilight-official
|
||
# inputs.nix-software-center.packages.${system}.nix-software-center
|
||
kitty
|
||
libfprint-2-tod1-broadcom
|
||
usbutils
|
||
wireguard-tools
|
||
# termius
|
||
util-linux
|
||
wirelesstools
|
||
lm_sensors
|
||
pciutils
|
||
libva-utils
|
||
tlp
|
||
linuxKernel.packages.linux_zen.cpupower
|
||
intel-gpu-tools
|
||
intel-media-driver
|
||
libva
|
||
libva-utils
|
||
intel-vaapi-driver
|
||
lshw
|
||
git
|
||
ethtool
|
||
protonup-ng
|
||
bottles
|
||
vpl-gpu-rt
|
||
yt-dlp
|
||
ffmpeg_6-full
|
||
prismlauncher
|
||
home-manager
|
||
mission-center
|
||
emacs
|
||
emacsPackages.magit
|
||
appimage-run
|
||
lolcat
|
||
openssl
|
||
warp-terminal
|
||
nixd
|
||
]) ++ [
|
||
pkgsTermius.termius
|
||
];
|
||
|
||
# Some programs need SUID wrappers, can be configured further or are
|
||
# started in user sessions.
|
||
# programs.mtr.enable = true;
|
||
# programs.gnupg.agent = {
|
||
# enable = true;
|
||
# enableSSHSupport = true;
|
||
# };
|
||
|
||
# List services that you want to enable:
|
||
|
||
# Enable the OpenSSH daemon.
|
||
# services.openssh.enable = true;
|
||
|
||
# Open ports in the firewall.
|
||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||
# Or disable the firewall altogether.
|
||
# networking.firewall.enable = false;
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "25.05"; # Did you read the comment?
|
||
|
||
hardware.graphics = {
|
||
enable = true;
|
||
extraPackages = with pkgs; [
|
||
intel-media-driver
|
||
intel-vaapi-driver
|
||
];
|
||
};
|
||
|
||
# Fonts configuration
|
||
fonts.packages = with pkgs; [
|
||
# nerd-fonts.fira-code
|
||
nerd-fonts.jetbrains-mono
|
||
# font-awesome
|
||
noto-fonts
|
||
noto-fonts-color-emoji
|
||
noto-fonts-cjk-sans
|
||
# mplus-outline-fonts.githubRelease
|
||
# dina-font
|
||
# proggyfonts
|
||
# liberation_ttf
|
||
];
|
||
|
||
# fonts.fontconfig = {
|
||
# enable = true;
|
||
# defaultFonts = {
|
||
# serif = [ "Noto Serif" ];
|
||
# sansSerif = [ "Noto Sans" ];
|
||
# monospace = [ "JetBrains Mono" "FiraCode Nerd Font" ]; # Puedes poner varias opciones
|
||
# emoji = [ "Noto Color Emoji" ];
|
||
# };
|
||
# };
|
||
# Enable Flake
|
||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||
|
||
services.power-profiles-daemon.enable = false;
|
||
|
||
# Enable flatpak
|
||
services.flatpak.enable = true;
|
||
|
||
# Steam
|
||
programs.steam = {
|
||
enable = true;
|
||
gamescopeSession.enable = true;
|
||
};
|
||
|
||
environment.sessionVariables = {
|
||
STEAM_EXTRA_COMPAT_TOOLS_PATHS =
|
||
"/home/jose/.steam/root/compatibilitytools.d";
|
||
};
|
||
|
||
programs.kdeconnect = {
|
||
enable = true;
|
||
package = pkgs.gnomeExtensions.gsconnect;
|
||
};
|
||
|
||
programs.nh = {
|
||
enable = true;
|
||
clean.enable = true;
|
||
clean.extraArgs = "--keep-since 4d --keep 3";
|
||
flake = "/home/jose/.dotfiles";
|
||
};
|
||
|
||
}
|