Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, pkgs, ... }:
- {
- # Include the results of the hardware scan.
- imports = [
- ./hardware-configuration.nix
- ];
- # #
- ## BOOTLOADER ##
- # #
- # Use the GRUB 2 boot loader.
- boot.loader.grub.enable = true;
- boot.loader.grub.version = 2;
- # Define on which hard drive you want to install Grub.
- boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
- # Enable OSProber to detect Windows.
- boot.loader.grub.useOSProber = true;
- # #
- ## NETWORKING ##
- # #
- # Set hostname
- networking.hostName = "tobagi";
- # Use NetworkManager
- networking.networkmanager.enable = true;
- # Activate NetworkManager WiFi powersave
- networking.networkmanager.wifi.powersave = true;
- # The global useDHCP flag is deprecated and explicitly set to false
- networking.useDHCP = false;
- # Per-interface useDHCP
- networking.interfaces.enp2s0.useDHCP = true;
- networking.interfaces.wlp3s0.useDHCP = true;
- # Enable Avahi mDNS
- # services.avahi.enable = true;
- # Avahi Name Service Switch (mDNS NSS)
- # services.avahi.nssmdns = true;
- # #
- ## SYSTEM ##
- # #
- # NixOS release
- system.stateVersion = "20.03";
- # Enable automatic system upgrades
- system.autoUpgrade.enable = true;
- # Allow nonfree software
- nixpkgs.config.allowUnfree = true;
- # Set time zone
- time.timeZone = "Europe/Rome";
- # Sat locale and default console keymap
- i18n.defaultLocale = "en_GB.UTF-8";
- console = {
- font = "Lat2-Terminus16";
- keyMap = "it";
- };
- # Personal account definition
- # [ REDACTED ]
- # #
- ## HARDWARE ##
- # #
- # Update intel microcode
- hardware.cpu.intel.updateMicrocode = true;
- # Enable sound
- sound.enable = true;
- hardware.pulseaudio.enable = true;
- hardware.pulseaudio.support32Bit = true;
- # Add bluetooth hardware support
- hardware.bluetooth.enable = true;
- # Bluetooth off on boot
- hardware.bluetooth.powerOnBoot = false;
- # #
- ## GAMES ##
- # #
- # Steam bugfix (to run Proton)
- # nixpkgs.config.packageOverrides = pkgs: {
- # steam = pkgs.steam.override { nativeOnly = true; };
- # };
- # Enable support for 32bit games
- hardware.opengl.driSupport32Bit = true;
- hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
- # Proton bugfix
- # Set limits for esync.
- systemd.extraConfig = "DefaultLimitNOFILE=1048576";
- security.pam.loginLimits = [{
- domain = "*";
- type = "hard";
- item = "nofile";
- value = "1048576";
- }];
- # #
- ## FONTS ##
- # #
- # Enable font antialiasing
- fonts.fontconfig.antialias = true;
- # Install fonts
- fonts.fonts = with pkgs; [ jetbrains-mono ];
- # Monospace font
- fonts.fontconfig.defaultFonts.monospace = [ "JetBrainsMono" ];
- # #
- ## X SERVER ##
- # #
- # Enable the X11 server
- services.xserver.enable = true;
- # Set it layout for X
- services.xserver.layout = "it";
- services.xserver.xkbOptions = "eurosign:e";
- # Select video drivers
- services.xserver.videoDrivers = [ "intel" "nvidia" ];
- # #
- ## GNOME ##
- # #
- # Enable Gnome Display Manager
- services.xserver.displayManager.lightdm.enable = true;
- # Use gnome3 as Desktop Manager
- services.xserver.desktopManager.gnome3.enable = true;
- # Enable Chrome Gnome Shell host connector to install extensions
- services.gnome3.chrome-gnome-shell.enable = true;
- # Enable essential services for Gnome
- services.gnome3.core-os-services.enable = true;
- # Add Gnome Shell services
- services.gnome3.core-shell.enable = true;
- # Remove unwanted software
- environment.gnome3.excludePackages = [ pkgs.gnome3.cheese pkgs.gnome3.epiphany pkgs.gnome3.geary pkgs.gnome3.gedit pkgs.gnome3.gnome-contacts pkgs.gnome3.gnome-maps pkgs.gnome3.gnome-music pkgs.gnome3.gnome-software ];
- # #
- ## ENVIRONMENT ##
- # #
- # Vim as default
- programs.vim.defaultEditor = true;
- # Packages installed in system profile
- nixpkgs.config.allowBroken = true;
- environment.systemPackages = with pkgs; [
- firefox vim vlc neofetch python3 git wget curl
- steam playonlinux
- (steam.override { nativeOnly = true; })
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement