# 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 ]; boot = { # Use the GRUB 2 boot loader. loader.grub = { enable = true; version = 2; # Define on which hard drive you want to install Grub. device = "/dev/sda"; }; tmpOnTmpfs = true; }; hardware = { opengl.enable = true; enableRedistributableFirmware = true; # Thinkpad stuff acpilight.enable = true; }; networking = { # Hostname and wireless enabled hostName = "jx230"; # wireless.enable = true; # 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. interfaces.enp0s25.useDHCP = true; interfaces.wlp3s0.useDHCP = true; # Firewall configuration # firewall.enable = true; yeah who needs that networkmanager = { enable = true; }; }; # Select internationalisation properties. i18n = { defaultLocale = "en_DK.UTF-8"; }; console = { keyMap = "us"; font = "Lat2-Terminus16"; }; # Set your time zone. time.timeZone = "Europe/Copenhagen"; # Enabled services # Enable the OpenSSH daemon. # services.openssh.enable = true; # Enable sound. sound.enable = true; hardware.pulseaudio.enable = true; # Stupid but need it to control sound from acpid # hardware.pulseaudio.systemWide = true; programs.gnupg.agent = { enable = true; enableSSHSupport = true; pinentryFlavor = "gtk2"; }; programs.dconf.enable = true; # Enable the X11 windowing system. services = { xserver = { enable = true; layout = "us"; xkbVariant = "altgr-intl"; exportConfiguration = true; windowManager = { i3 = { enable = false; package = pkgs.i3-gaps; }; qtile.enable = true; }; displayManager = { defaultSession = "none+qtile"; }; desktopManager = { xterm.enable = false; }; # Touchpad studd libinput.enable = true; # Start dbus? startDbusSession = true; }; # Auto mounting gvfs.enable = true; # Yubikey pcscd.enable = true; # Thinkpad acpid = { enable = true; # Turn down sound when inserting headphones handlers = { headphone = { action = '' vals=($1) case ''${vals[2]} in plug) whoami >> /tmp/acpi.log amixer set Master 10% ;; esac ''; event = "jack/headphone.*"; }; }; }; tlp.enable = true; # Evolution gnome3 = { gnome-keyring.enable = true; evolution-data-server.enable = true; }; # Enable CUPS to print documents. printing.enable = true; }; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.julian = { isNormalUser = true; shell = pkgs.zsh; extraGroups = [ "wheel" "video" ]; }; virtualisation.docker = { enable = true; }; # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you # should. system.stateVersion = "20.09"; # Did you read the comment? fonts.fonts = with pkgs; [ noto-fonts noto-fonts-emoji liberation_ttf ubuntu_font_family cozette ]; # List packages installed in system profile. To search, run: # $ nix search wget nixpkgs.config.allowUnfree = true; environment = { etc = { "docker/daemon.json".text = '' { "dns": [ "1.1.1.1", "9.9.9.9" ] } ''; }; systemPackages = with pkgs; [ # General stuff wget vim neovim git htop zsh stow pass tree dnsutils gnupg zip unzip gopass tig file imagemagick whois nmap usbutils lshw gnumake aspell aspellDicts.da pv acpi jq killall netcat-gnu perl gopass cowsay # Landuage support rustup gcc binutils python3 python go clang-tools # Network stuff networkmanagerapplet networkmanager-openconnect networkmanager-l2tp iw batctl wirelesstools # X stuff feh xscreensaver dmenu rofi xorg.xmodmap xss-lock xclip acpilight xdotool dunst xcompmgr scrot libnotify # Gui applications firefox pavucontrol okular leafpad inkscape gimp meld pinentry gnome3.gnome-system-monitor gnome3.dconf pcmanfm termite quasselClient nomacs wireshark spotify pavucontrol fractal gnome3.file-roller geogebra gnome3.gnome-calculator gnome3.simple-scan vlc xorg.xev gnome3.evolution evolution-data-server (mumble.override { pulseSupport = true; }) # Other stuff # texlive.combined.scheme-full biber aldo # Hardware stuff. X230 linuxPackages.acpi_call ]; }; }