Skip to content

Instantly share code, notes, and snippets.

@lovek323
Created February 4, 2019 05:13
Show Gist options
  • Save lovek323/1e776038c445f8ca5a902237eaa259a3 to your computer and use it in GitHub Desktop.
Save lovek323/1e776038c445f8ca5a902237eaa259a3 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
boot = {
kernel.sysctl = {
"fs.inotify.max_user_watches" = 524288;
};
loader.grub = {
enable = true;
version = 2;
device = "/dev/sda";
};
};
environment.systemPackages = with pkgs; [
conky-latest
feh
file
git
killall
lm_sensors
rofi
rxvt_unicode
tmux
vim
];
fonts = {
enableFontDir = true;
fonts = with pkgs; [
corefonts
dejavu_fonts
freefont_ttf
inconsolata
terminus_font
ubuntu_font_family
];
};
hardware = {
opengl = {
driSupport = true;
driSupport32Bit = true;
};
pulseaudio = {
enable = true;
support32Bit = true;
systemWide = true;
};
};
networking = {
extraHosts = ''
127.0.0.10 fin.dev
127.0.0.10 fus.dev
127.0.0.10 nichemanagement.api.dev
'';
firewall.enable = false;
hostName = "lovek323-ubuntu";
nameservers = [ "8.8.8.8" ];
networkmanager.enable = true;
};
nix = {
useSandbox = true;
sandboxPaths = [ "/home/lovek323" ];
trustedBinaryCaches = [ https://hydra.nixos.org ];
};
nixpkgs.config.allowUnfree = true;
security.sudo.wheelNeedsPassword = false;
services = {
roon-server.enable = true;
usbmuxd.enable = true;
printing = {
drivers = with pkgs; [ epson-escpr ];
enable = true;
};
xserver = {
displayManager.gdm.wayland = false;
enable = true;
exportConfiguration = true;
videoDrivers = [ "nvidia" ];
xkbOptions = "compose:caps";
windowManager = {
default = "i3";
i3 = {
enable = true;
package = pkgs.i3-gaps;
};
};
};
};
sound = {
enable = true;
mediaKeys.enable = true;
};
system = {
activationScripts = {
binaries = ''
[ -e /usr/bin/file ] || ln -s ${pkgs.file}/bin/file /usr/bin
[ -e /bin/bash ] || ln -s ${pkgs.bash}/bin/bash /bin
'';
};
stateVersion = "18.09";
};
time.timeZone = "Australia/Adelaide";
users.extraUsers.lovek323 = {
createHome = true;
description = "Jason O'Conal";
extraGroups = [ "audio" "docker" "networkmanager" "vboxusers" "wheel" ];
home = "/home/lovek323";
shell = "/run/current-system/sw/bin/bash";
};
virtualisation = {
docker.enable = true;
virtualbox.host = {
enable = true;
enableExtensionPack = true;
enableHardening = false;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment