Skip to content

Instantly share code, notes, and snippets.

@vbop9834
Last active February 26, 2020 22:16
Show Gist options
  • Save vbop9834/f81da728b1f83190bfe2471a0407b3b3 to your computer and use it in GitHub Desktop.
Save vbop9834/f81da728b1f83190bfe2471a0407b3b3 to your computer and use it in GitHub Desktop.
# 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 GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.initrd.luks.devices =
{
root = {
device = "/dev/sda3";
preLVM = true;
};
};
networking = {
networkmanager.enable = true;
hostName = "Lenovwut";
};
# 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
# networking.hostName = "nixos"; # Define your hostname.
# 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.
time.timeZone = "America/Denver";
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowBroken = false;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget vim
i3status-rust
dmenu
unclutter
imagemagick
geoclue2
firefox
chromium
discord
kitty
emacs
feh
git
fsharp
mono6
dotnet-sdk_3
#monodevelop
libgdiplus
mupen64plus
elixir
nodejs
python3
python37Packages.ds4drv
python37Packages.pip
docker
redshift
p7zip
unrar
steam
(steam.override {
withJava = true;
extraPkgs = pkgs: [ mono6 libgdiplus ];
nativeOnly = true;
}).run
rustc
cargo
geoclue2
gnumake
blender
awsebcli
libargon2
gcc
signal-desktop
paprefs
xfce.dconf
libva
];
virtualisation.docker.enable = true;
security.chromiumSuidSandbox.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Enable CUPS to print documents.
# services.printing.enable = true;
services.compton = {
enable = true;
shadow = true;
inactiveOpacity = "0.6";
fade = true;
fadeDelta = 5;
opacityRules = [ "90:class_g = 'Emacs'" "90:class_g = 'signal-desktop'" ];
};
# Enable sound.
sound.enable = true;
sound.mediaKeys = {
enable = true;
volumeStep = "5%";
};
#hardware.pulseaudio.package = pkgs.pulseaudioFull;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;
nixpkgs.config.pulseaudio = true;
programs.dconf.enable = true;
programs.light.enable = true;
services.actkbd = {
enable = true;
bindings = [
{ keys = [ 225 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -A 10 && /run/current-system/sw/bin/light -I"; }
{ keys = [ 224 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -U 10 && /run/current-system/sw/bin/light -I"; }
];
};
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "us";
services.xserver.xkbOptions = "caps:escape";
# Enable touchpad support.
services.xserver.libinput.enable = true;
services.xserver.displayManager.defaultSession = "xfce";
services.xserver.desktopManager = {
xterm.enable = false;
xfce = {
enable = true;
noDesktop = true;
enableXfwm = false;
};
};
services.xserver.windowManager.i3.enable = true;
services.xserver.windowManager.i3.package = pkgs.i3-gaps;
# Define a user account. Don't forget to set a password with ‘passwd’.
# users.users.jane = {
# isNormalUser = true;
# extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
# };
users.extraUsers.jeremy = {
name = "Jeremy";
group = "users";
extraGroups = [
"wheel" "disk" "audio" "video" "jackaudio"
"networkmanager" "systemd-journal" "docker"
];
createHome = true;
uid = 1000;
home = "/home/jeremy";
shell = "/run/current-system/sw/bin/bash";
};
fonts = {
enableFontDir = true;
enableGhostscriptFonts = true;
fonts = with pkgs; [
inconsolata
unifont
anonymousPro
fira-code
font-awesome_4
];
};
hardware.opengl.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages = with pkgs; [ libva ];
services.redshift = {
enable = true;
temperature.night = 2500;
};
location.provider = "geoclue2";
# 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 = "20.03"; # Did you read the comment?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment