-
-
Save anonymous/a97e94b42f59aea37cef5ca615d7a5ef 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
{ config, pkgs, ... }: | |
{ | |
boot.loader.grub.device = "/dev/sda"; | |
boot.loader.grub.efiInstallAsRemovable = true; | |
boot.loader.grub.efiSupport = true; | |
environment = { | |
shellInit = '' | |
export XDG_CONFIG_HOME="$HOME/.config" | |
export XDG_CACHE_HOME="$HOME/.cache" | |
export XDG_DATA_HOME="$HOME/.data" | |
export PATH="$HOME/.bin:$PATH" | |
export PATH="$HOME/.cargo/bin:$PATH" | |
export PROMPT_DIRTRIM=2 | |
export HISTFILE="$XDG_CACHE_HOME/bash/history" | |
export HISTSIZE="10000" | |
export HISTFILESIZE=500000 | |
export HISTCONTROL="erasedups:ignoreboth" | |
export HISTIGNORE="&:[ ]*:exit:ls:cd:date:bg:fg:history:clear" | |
export INPUTRC="$XDG_CONFIG_HOME/inputrc" | |
export LANG=en_US.UTF-8 | |
export EDITOR="nvim" | |
export VISUAL=$EDITOR | |
export ALTERNATE_EDITOR="" | |
export PAGER="less" | |
export MANPAGER="less -X" | |
export BROWSER="xdg-open" | |
export LESSHISTFILE=/dev/null | |
export GREP_COLOR="1;33" | |
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc" | |
export ELINKS_CONFDIR="$XDG_CONFIG_HOME/elinks" | |
# ssh-agent | |
if [[ -d ''${XDG_RUNTIME_DIR:-/run/user/$(id -u)} ]]; then | |
export SSH_AUTH_SOCK=''${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/ssh | |
ssh-add -l &>/dev/null | |
[[ "$?" = 2 ]] && ssh-agent -a "$SSH_AUTH_SOCK" | |
fi | |
''; | |
interactiveShellInit = '' | |
export PS1='\[\e[01;31m\]\u\[\e[m\]@\[\e[01;34m\]\h\[\e[00m\] \w\$ ' | |
''; | |
systemPackages = with pkgs; [ | |
chromium | |
ctags | |
emacs | |
fasd | |
gimp | |
git | |
i3 | |
inkscape | |
lxappearance | |
mpv | |
neovim | |
pass | |
pavucontrol | |
pcmanfm | |
rofi | |
sudo | |
termite | |
tmux | |
unzip | |
vim | |
wget | |
vanilla-dmz | |
xclip | |
xlibs.xmodmap | |
youtube-dl | |
zip | |
]; | |
}; | |
fonts = { | |
enableFontDir = true; | |
enableGhostscriptFonts = true; | |
fontconfig = { | |
ultimate.enable = true; | |
ultimate.preset = "osx"; | |
}; | |
fonts = with pkgs; [ | |
dejavu_fonts | |
liberation_ttf | |
inconsolata | |
iosevka | |
terminus_font | |
]; | |
}; | |
hardware.pulseaudio.enable = true; | |
i18n = { | |
consoleFont = "ter-112n"; | |
consoleKeyMap = "us"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
imports = | |
[ | |
./hardware-configuration.nix | |
]; | |
networking = { | |
defaultGateway = "192.168.1.1"; | |
firewall.enable = false; | |
hostName = "basilisk"; | |
hosts = { | |
"127.0.0.1" = [ "basilisk" ]; | |
"192.168.1.2" = [ "chimera" ]; | |
"192.168.1.3" = [ "basilisk" ]; | |
}; | |
interfaces.enp4s0.ip4 = [ { address = "192.168.1.3"; prefixLength = 24;} ]; | |
nameservers = [ "8.8.8.8" "8.8.4.4" ]; | |
wireless.enable = false; | |
}; | |
nixpkgs.config.allowUnfree = true; | |
programs = { | |
bash.enableCompletion = true; | |
gnupg.agent.enable = true; | |
ssh.startAgent = true; | |
}; | |
security = { | |
sudo = { | |
enable = true; | |
wheelNeedsPassword = false; | |
}; | |
}; | |
services = { | |
openssh.enable = true; | |
xserver = { | |
enable = true; | |
desktopManager.default = "none"; | |
displayManager = { | |
auto.enable = true; | |
auto.user = "mfiano"; | |
sessionCommands = '' | |
source ${config.system.build.setEnvironment} | |
[[ -e $XDG_CONFIG_HOME/xorg/xmodmap ]] && xmodmap $XDG_CONFIG_HOME/xorg/xmodmap | |
[[ -e $XDG_CONFIG_HOME/xorg/xresources ]] && xrdb -merge $XDG_CONFIG_HOME/xorg/xresources | |
''; | |
}; | |
layout = "us"; | |
videoDrivers = [ "nvidia" "intel" "vesa" ]; | |
windowManager = { | |
default = "i3"; | |
i3.enable = true; | |
i3.extraPackages = with pkgs; [ i3status ]; | |
}; | |
}; | |
}; | |
system.stateVersion = "17.09"; | |
time.timeZone = "America/New_York"; | |
users = { | |
users = { | |
mfiano = { | |
extraGroups = [ "wheel" ]; | |
isNormalUser = true; | |
uid = 1000; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment