Update configuration

This commit is contained in:
Vidir Valberg Gudmundsson 2019-09-02 22:02:09 +02:00
parent 489a81687e
commit 948dd93052
1 changed files with 58 additions and 12 deletions

View File

@ -2,12 +2,13 @@
{ {
imports = imports =
[ [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.loader.grub.version = 2; boot.loader.grub.version = 2;
# boot.loader.grub.efiSupport = true; # boot.loader.grub.efiSupport = true;
@ -19,6 +20,17 @@
networking.hostName = "nixos"; # Define your hostname. networking.hostName = "nixos"; # Define your hostname.
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. #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";
# Select internationalisation properties.
# i18n = {
# consoleFont = "Lat2-Terminus16";
# consoleKeyMap = "us";
# defaultLocale = "en_US.UTF-8";
# };
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Copenhagen"; time.timeZone = "Europe/Copenhagen";
@ -31,33 +43,67 @@
thunderbird thunderbird
git git
python3 python3
woof # share files on LAN rxvt_unicode_with-plugins
woof # share files over http on localhost
# terminal tools
gotop
cava
]; ];
# Enable CUPS to print documents. networking.networkmanager.enable = true;
services.printing.enable = true;
# Enable sound. # Enable sound.
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; #services.xserver.enable = true;
# services.xserver.layout = "us";
# services.xserver.xkbOptions = "eurosign:e";
# Enable touchpad support. # Enable touchpad support.
services.xserver.libinput.enable = true; #services.xserver.libinput.enable = true;
# Enable the GNOME Desktop Environment. # Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true; #services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome3.enable = true; #services.xserver.desktopManager.gnome3.enable = true;
#nixpkgs.config.firefox.enableGnomeExtensions = true;
#services.gnome3.chrome-gnome-shell.enable = true;
# Do some gnome configuration services.xserver = {
nixpkgs.config.firefox.enableGnomeExtensions = true; enable = true;
services.gnome3.chrome-gnome-shell.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
];
};
};
# Define a user account. Don't forget to set a password with passwd.
users.users.valberg = { users.users.valberg = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" "networkmanager" ];
}; };
# This value determines the NixOS release with which your system is to be # This value determines the NixOS release with which your system is to be