Skip to content

Instantly share code, notes, and snippets.

@bburdette
Created May 24, 2020 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bburdette/5693f1490df43730bb20fdd6a3e90041 to your computer and use it in GitHub Desktop.
Save bburdette/5693f1490df43730bb20fdd6a3e90041 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, ... }:
let
unstable = import <nixos-unstable> {};
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
/home/bburdette/op-code/musnix
];
musnix.enable = true;
# musnix.ffado.enable = true;
# unfree for video editing (cinelerra).
nixpkgs.config.allowUnfree = true;
powerManagement.enable = true;
services.acpid.enable=true;
# services.thermald.enable = true;
services.thinkfan.enable = true;
# services.thinkfan.sensors = "atasmart";
services.thinkfan.sensors = ''
hwmon /sys/class/hwmon/hwmon2/temp1_input
'';
# services.thinkfan.sensors = ''
# hwmon /sys/class/hwmon/hwmon0/temp1_input (0, 0, 10)
# '';
# "/sys/devices/virtual/thermal/thermal_zone0/hwmon0/temp1_input";
# services.jack = {
# jackd.enable = false;
# alsa.enable = true;
# };
services.dbus.enable = true;
# 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
# Use the systemd-boot EFI boot loader.
# boot.loader.systemd-boot.enable = true;
# boot.loader.efi.canTouchEfiVariables = true;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
networking = {
hostName = "trurl"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
firewall.allowedTCPPorts = [22 80 443 8000];
networkmanager.enable = true;
};
# hardware.bluetooth.enable = true;
# hardware.pulseaudio.enable = true;
# set in the hardware-configuration.nix
# fileSystems."/" =
# { device = "/dev/disk/by-label/os2"; };
# fileSystems."/boot/efi" =
# { device = "/dev/disk/by-uuid/72CE-1B4D"; };
# home partition uuid: 77ab0fd9-39d8-41df-9d5a-1a3d5763641d
# fileSystems."/home" =
# { device = "/dev/disk/by-label/home"; };
# Set your time zone.
time.timeZone = "America/Denver";
# fonts.fontconfig.dpi=180;
sound.enable = true;
# virtualisation.virtualbox.host.enable = false;
# 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; };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# services.postgresql.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.xserver = {
# Enable the X11 windowing system.
enable = true;
layout = "us";
# xkbOptions = "grp:alt_space_toggle, ctrl:swapcaps";
xkbOptions = "caps:swapescape";
# desktopManager = {
# gnome3.enable = true;
# default = "gnome3";
# };
wacom.enable = true;
# dpi=180;
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
extraPackages = haskellPackages: [
haskellPackages.xmonad-contrib
haskellPackages.xmonad-extras
haskellPackages.xmonad
];
};
# services.xserver.
displayManager.defaultSession = "none+xmonad";
# windowManager.default = "xmonad";
# Enable touchpad support.
libinput.enable = true;
};
# services.xserver.xkbOptions = "eurosign:e";
# Enable the KDE Desktop Environment.
# services.xserver.displayManager.sddm.enable = true;
# services.xserver.desktopManager.plasma5.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.extraUsers.bburdette = {
isNormalUser = true;
uid = 1000;
createHome = true;
home = "/home/bburdette";
useDefaultShell = true;
extraGroups = [ "wheel" "jackaudio" "audio" ];
};
# 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 = "19.03"; # Did you read the comment?
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
gparted
firefox
chromium
musescore
ghc
elmPackages.elm
elmPackages.elm-format
elmPackages.elm-analyse
elmPackages.elm-doc-preview
elmPackages.elm-live
elmPackages.elm-test
elmPackages.elm-upgrade
elmPackages.elm-xref
elmPackages.elm-language-server
fswatch
htop
evince
stack
kakoune
kak-lsp
wget
# neovim
git
exa
ethtool
libreoffice
dmenu
ardour
guitarix
qjackctl
jack2
ffadoFull
cadence
sakura
haskellPackages.xmobar
acpi
xbrightness
feh
vlc
reflex
openscad
pinta
gimp
shutter
certbot
aws
slock
xclip
whois
sshpass
#(python35.withPackages(ps: with ps; [ numpy toolz ]))
(python.withPackages(ps: with ps; [ pygtk ]))
# python
# python27Packages.pygtk
bluez
binutils
unzip
carnix
tmux
# transmission-gtk
rustfmt
nodejs
asunder
# openshot-qt
fim
# nodePackages.node2nix
tokei
# patchelf
unar
comical
imagemagick7
nomacs
audacity
# kazam
woff2
rls
# timemachine
# wire-desktop
xsel
pavucontrol
chez
cquery
amber
astyle
zoom-us
youtube-dl
indent
clang-tools
unstable.uncrustify
espeak-classic
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment