configuration/configuration.nix

116 lines
2.9 KiB
Nix
Raw Normal View History

2019-08-18 09:34:15 +00:00
{ config, pkgs, ... }:
{
imports =
2019-09-02 20:02:09 +00:00
[ # Include the results of the hardware scan.
2019-08-18 09:34:15 +00:00
./hardware-configuration.nix
];
nixpkgs.config.allowUnfree = true;
2019-09-02 20:02:09 +00:00
# Use the GRUB 2 boot loader.
2019-08-18 09:34:15 +00:00
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
networking.hostName = "nixos"; # Define your hostname.
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
2019-09-02 20:02:09 +00:00
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
# i18n = {
# consoleFont = "Lat2-Terminus16";
# consoleKeyMap = "us";
# defaultLocale = "en_US.UTF-8";
# };
2019-08-18 09:34:15 +00:00
# Set your time zone.
time.timeZone = "Europe/Copenhagen";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget
vim
firefox
thunderbird
git
python3
2019-09-02 20:02:09 +00:00
rxvt_unicode_with-plugins
2019-09-02 21:02:34 +00:00
mosh
2019-09-02 20:02:09 +00:00
woof # share files over http on localhost
# terminal tools
gotop
cava
2019-08-18 09:34:15 +00:00
];
2019-09-02 20:02:09 +00:00
networking.networkmanager.enable = true;
2019-08-18 09:34:15 +00:00
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
# Enable the X11 windowing system.
2019-09-02 20:02:09 +00:00
#services.xserver.enable = true;
# services.xserver.layout = "us";
# services.xserver.xkbOptions = "eurosign:e";
2019-08-18 09:34:15 +00:00
# Enable touchpad support.
2019-09-02 20:02:09 +00:00
#services.xserver.libinput.enable = true;
2019-08-18 09:34:15 +00:00
# Enable the GNOME Desktop Environment.
2019-09-02 20:02:09 +00:00
#services.xserver.displayManager.gdm.enable = true;
#services.xserver.desktopManager.gnome3.enable = true;
#nixpkgs.config.firefox.enableGnomeExtensions = true;
#services.gnome3.chrome-gnome-shell.enable = true;
services.xserver = {
enable = true;
xkbOptions = "ctrl:swapcaps";
layout = "us";
xkbVariant = "intl";
desktopManager = {
default = "none";
xterm.enable = false;
};
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
extraPackages = with pkgs; [
dmenu
i3status
i3lock
dunst
polybar
];
};
};
2019-08-18 09:34:15 +00:00
2019-09-02 20:02:09 +00:00
# Define a user account. Don't forget to set a password with passwd.
2019-08-18 09:34:15 +00:00
users.users.valberg = {
isNormalUser = true;
2019-09-02 20:02:09 +00:00
extraGroups = [ "wheel" "networkmanager" ];
2019-08-18 09:34:15 +00:00
};
# 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 = "19.03"; # Did you read the comment?
}