Created
May 7, 2020 01:17
-
-
Save peterstuart/e284004000c6be2e4af8a6e6d6a4f1f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, options, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
/etc/nixos/hardware-configuration.nix | |
]; | |
system.stateVersion = "20.03"; # Did you read the comment? | |
nixpkgs.config.allowUnfree = true; | |
nix.gc.automatic = true; | |
nix.gc.dates = "03:15"; | |
nix.gc.options = "--delete-older-than 14d"; | |
users.users.peter = { | |
isNormalUser = true; | |
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. | |
shell = pkgs.zsh; | |
}; | |
location.latitude = 42.301217; | |
location.longitude = -72.384386; | |
# Use the GRUB 2 boot loader. | |
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 | |
environment.variables = { | |
OH_MY_ZSH = [ "${pkgs.oh-my-zsh}/share/oh-my-zsh" ]; | |
XCURSOR_SIZE = "64"; | |
}; | |
networking.hostName = "nixos"; | |
networking.useDHCP = false; | |
networking.interfaces.enp0s5.useDHCP = true; | |
networking.networkmanager.enable = true; | |
sound.enable = true; | |
hardware.pulseaudio.enable = true; | |
services.localtime.enable = true; | |
services.physlock.enable = true; | |
services.emacs.enable = true; | |
services.postgresql.enable = true; | |
services.printing.enable = true; | |
services.redshift = { | |
enable = true; | |
temperature.night = 2500; | |
}; | |
services.lorri.enable = true; | |
programs.ssh.startAgent = true; | |
services.xserver.enable = true; | |
services.xserver.layout = "us"; | |
services.xserver.dpi = 220; | |
services.xserver.displayManager.defaultSession = "none+xmonad"; | |
services.xserver.windowManager.xmonad.enable = true; | |
services.xserver.windowManager.xmonad.enableContribAndExtras = true; | |
services.xserver.windowManager.xmonad.extraPackages = haskellPackages: [ | |
haskellPackages.xmonad-contrib | |
haskellPackages.xmonad-extras | |
haskellPackages.xmonad | |
]; | |
services.xserver.desktopManager.gnome3.enable = true; | |
environment.systemPackages = with pkgs; [ | |
acpi | |
alacritty | |
curl | |
dex | |
direnv | |
dmenu | |
dunst | |
emacs | |
feh | |
firefox | |
font-awesome-ttf | |
git | |
google-chrome | |
gnome3.gnome-tweak-tool | |
haskellPackages.xmobar | |
haskellPackages.xmonad | |
haskellPackages.xmonad-contrib | |
haskellPackages.xmonad-extras | |
hlint | |
libnotify | |
lxappearance | |
networkmanager_dmenu | |
notmuch | |
numix-solarized-gtk-theme | |
offlineimap | |
oh-my-zsh | |
ormolu | |
picom | |
psmisc # killall... | |
slack | |
terminus_font | |
tmux | |
wget | |
xclip | |
xorg.xbacklight | |
xscreensaver | |
xsettingsd | |
zoom-us | |
zsh | |
]; | |
fonts = { | |
enableFontDir = true; | |
enableGhostscriptFonts = true; | |
fonts = with pkgs; [ | |
corefonts | |
dejavu_fonts | |
font-awesome-ttf | |
hasklig | |
helvetica-neue-lt-std | |
inconsolata | |
proggyfonts | |
source-code-pro | |
source-sans-pro | |
source-serif-pro | |
terminus_font | |
ubuntu_font_family | |
]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment