You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.8 KiB
Nix

# 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.canTouchEfiVariables = true;
networking.hostName = "sw4n"; # Define your hostname.
networking.networkmanager.enable = true;
# Select internationalisation properties.
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "dvorak";
defaultLocale = "en_US.UTF-8";
};
# Set your time zone.
time.timeZone = "US/Eastern";
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
wget vim
];
nixpkgs.config.allowUnfree = true;
# 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; };
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
services.udisks2.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Enable CUPS to print documents.
# services.printing.enable = true;
services.xserver.enable = true;
services.xserver.layout = "dvorak";
services.xserver.videoDriver = "nvidia";
services.xserver.resolutions = [ { x = 2560; y = 1440; } ];
services.upower.enable = true;
services.xserver.displayManager.slim.defaultUser = "dustinswan";
services.xserver.windowManager.xmonad.enable = true;
services.xserver.windowManager.xmonad.enableContribAndExtras = true;
services.xserver.windowManager.xmonad.extraPackages = self: [ self.taffybar ];
services.xserver.windowManager.default = "xmonad";
services.syncthing = {
enable = true;
# useInotify = true;
user = "dustinswan";
dataDir = "/home/dustinswan/";
};
hardware.opengl.driSupport32Bit = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;
sound.mediaKeys.enable = true;
programs.fish.enable = true;
users.extraUsers.dustinswan = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "networkmanager" ];
uid = 1000;
shell = pkgs.fish;
};
# 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 = "17.09"; # Did you read the comment?
}