Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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, ... }:
- {
- imports =
- [ # Include the results of the hardware scan.
- ./hardware-configuration.nix
- ];
- # Use the systemd-boot EFI boot loader.
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.efiSysMountPoint = "/boot/efi";
- boot.loader.efi.canTouchEfiVariables = true;
- # Kernel Modules
- boot.kernelModules = [ "kvm-amd" "kvm-intel" ];
- networking.hostName = "nixos"; # Define your hostname.
- # Select internationalisation properties.
- i18n = {
- consoleFont = "Lat2-Terminus16";
- consoleKeyMap = "uk";
- defaultLocale = "en_US.UTF-8";
- };
- # Set your time zone.
- time.timeZone = "Europe/Vilnius";
- # List packages installed in system profile. To search, run:
- # $ nix search wget
- nixpkgs.config.allowUnfree = true; # Allow nonFree packages.
- environment.systemPackages = with pkgs; [
- curl wget vim sxhkd git htop nmap feh
- exa neofetch cmatrix pavucontrol gcc
- firefox tdesktop rofi flameshot jq
- termite obs-studio nodejs go mpv kitty proot
- curlftpfs ranger kdeconnect compton gimp ffmpeg virtualbox
- ];
- # Some programs need SUID wrappers, can be configured further or are
- # started in user sessions.
- # programs.bash.enableCompletion = true;
- # 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;
- # Enable the Tor daemon.
- services.tor.enable = false;
- # Enable libvirt daemon
- virtualisation.libvirtd.enable = true;
- # Enable VirtualBox
- virtualisation.virtualbox.host.enable = true;
- # Enable NetworkManager
- networking.networkmanager.enable = true;
- networking.nameservers = [ "1.1.1.1" "1.0.0.1" ]; # Configure DNS servers
- # Open ports in the firewall.
- networking.firewall.allowedTCPPorts = [ 22 80 8080 1337 ];
- # networking.firewall.allowedUDPPorts = [ ... ];
- # Or disable the firewall altogether.
- # networking.firewall.enable = false;
- # Enable sound.
- sound.enable = true;
- hardware.pulseaudio.enable = true;
- # Enable the X11 windowing system.
- services.xserver.enable = true;
- services.xserver.videoDrivers = [ "nvidia" ];
- hardware.opengl.driSupport32Bit = true;
- services.xserver.layout = "gb";
- services.xserver.xkbOptions = "eurosign:e";
- # Enable Window manager.
- services.xserver.windowManager.bspwm.enable = true;
- # Set Zsh as default shell.
- users.defaultUserShell = pkgs.zsh;
- # Define a user account. Don't forget to change a password with ‘passwd’.
- users.users.stnby = {
- isNormalUser = true;
- description = "Stnby";
- extraGroups = [ "wheel" "networkmanager" "libvirt"];
- initialPassword = "default";
- uid = 1000;
- };
- system.stateVersion = "18.03"; # Change this only if release notes say to do it!!!
- }
Add Comment
Please, Sign In to add comment