2018-06-05 22:55:07 -06:00
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
let
|
|
|
|
|
my-python-packages = python-packages: with python-packages; [
|
|
|
|
|
appdirs
|
|
|
|
|
requests
|
|
|
|
|
virtualenv
|
|
|
|
|
ipython
|
|
|
|
|
ipdb
|
|
|
|
|
virtualenvwrapper
|
|
|
|
|
pip
|
|
|
|
|
];
|
|
|
|
|
python-with-my-packages = pkgs.python3.withPackages my-python-packages;
|
2018-06-14 21:50:02 -06:00
|
|
|
|
udiskie-appindicator = pkgs.udiskie.overrideAttrs (oldAttrs: rec {
|
|
|
|
|
version = "1.7.5";
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
|
owner = "coldfix";
|
|
|
|
|
repo = "udiskie";
|
|
|
|
|
rev = version;
|
|
|
|
|
sha256 = "1mcdn8ha5d5nsmrzk6xnnsqrmk94rdrzym9sqm38zk5r8gpyl1k4";
|
|
|
|
|
};
|
|
|
|
|
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [pkgs.libappindicator-gtk3];
|
|
|
|
|
});
|
2018-06-17 04:01:41 -06:00
|
|
|
|
clipit-master = pkgs.clipit.overrideAttrs (oldAttrs: rec {
|
2018-06-25 19:35:23 -06:00
|
|
|
|
version = "50d983514386029a1f133187902084b753458f32";
|
2018-06-17 04:01:41 -06:00
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
configureFlags = ["--with-gtk3" "--enable-appindicator"];
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
|
owner = "IvanMalison";
|
|
|
|
|
repo = "ClipIt";
|
2018-06-25 19:35:23 -06:00
|
|
|
|
sha256 = "1d52zjnxmcp2kr4wvq2yn9fhr61v9scp91fxfvasvz5m7k1zagdn";
|
2018-06-17 04:01:41 -06:00
|
|
|
|
rev = version;
|
|
|
|
|
};
|
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
|
autoconf automake intltool gtk3 xdotool hicolor-icon-theme
|
|
|
|
|
libappindicator-gtk3
|
|
|
|
|
];
|
|
|
|
|
});
|
2018-06-18 18:12:26 -06:00
|
|
|
|
pasystray-appindicator = with pkgs; pasystray.overrideAttrs (oldAttrs: rec {
|
|
|
|
|
buildInputs = oldAttrs.buildInputs ++ [libappindicator-gtk3];
|
|
|
|
|
});
|
2018-07-08 02:43:59 -06:00
|
|
|
|
customizable-notify-osd = with pkgs; notify-osd.overrideAttrs (oldAttrs: rec {
|
|
|
|
|
version = "0.9.35+16.04.20160415";
|
|
|
|
|
baseURI = "https://launchpad.net/~leolik/+archive/leolik";
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "${baseURI}/+files/notify-osd_${version}-0ubuntu1-leolik~ppa0.tar.gz";
|
|
|
|
|
sha256 = "026dr46jh3xc4103wnslzy7pxbxkkpflh52c59j8vzwaa7bvvzkv";
|
|
|
|
|
name = "notify-osd-customizable.tar.gz";
|
|
|
|
|
};
|
|
|
|
|
preConfigure = "./autogen.sh --libexecdir=$(out)/bin";
|
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
|
glib libwnck3 libnotify dbus-glib gnome3.gsettings-desktop-schemas
|
|
|
|
|
makeWrapper libtool gnome3.gnome-common
|
|
|
|
|
];
|
|
|
|
|
});
|
2018-06-05 22:55:07 -06:00
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
networking.networkmanager.enable = true;
|
2018-06-18 15:41:28 -06:00
|
|
|
|
networking.firewall.enable = false;
|
2018-06-05 22:55:07 -06:00
|
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
|
consoleKeyMap = "us";
|
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
# TODO: this should be set dynamically
|
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
|
fonts = with pkgs; [
|
|
|
|
|
dejavu_fonts
|
|
|
|
|
emojione
|
2018-06-24 17:39:40 -06:00
|
|
|
|
fira-mono
|
|
|
|
|
font-awesome-ttf
|
|
|
|
|
noto-fonts-emoji
|
2018-06-05 22:55:07 -06:00
|
|
|
|
roboto
|
2018-06-24 17:39:40 -06:00
|
|
|
|
source-code-pro
|
2018-06-05 22:55:07 -06:00
|
|
|
|
source-sans-pro
|
|
|
|
|
source-serif-pro
|
2018-06-24 17:39:40 -06:00
|
|
|
|
twemoji-color-font
|
2018-06-05 22:55:07 -06:00
|
|
|
|
];
|
|
|
|
|
fontconfig = {
|
|
|
|
|
defaultFonts = {
|
|
|
|
|
monospace = [ "Source Code Pro" ];
|
|
|
|
|
sansSerif = [ "Roboto" ];
|
|
|
|
|
serif = [ "Source Serif Pro" ];
|
|
|
|
|
};
|
|
|
|
|
ultimate = {
|
|
|
|
|
enable = false;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
|
|
|
|
|
# Applications
|
2018-06-18 14:24:26 -06:00
|
|
|
|
calibre
|
2018-06-18 21:54:39 -06:00
|
|
|
|
discord
|
2018-06-17 04:16:49 -06:00
|
|
|
|
emacs
|
2018-06-05 22:55:07 -06:00
|
|
|
|
firefox
|
2018-06-18 21:54:39 -06:00
|
|
|
|
kleopatra
|
2018-06-17 04:16:49 -06:00
|
|
|
|
google-chrome
|
2018-06-05 22:55:07 -06:00
|
|
|
|
hexchat
|
2018-06-17 04:16:49 -06:00
|
|
|
|
keybase-gui
|
2018-06-05 22:55:07 -06:00
|
|
|
|
kodi
|
2018-06-18 18:12:26 -06:00
|
|
|
|
lxappearance
|
2018-06-17 04:16:49 -06:00
|
|
|
|
rxvt_unicode
|
2018-06-05 22:55:07 -06:00
|
|
|
|
spotify
|
|
|
|
|
termite
|
2018-06-17 04:16:49 -06:00
|
|
|
|
vlc
|
|
|
|
|
xfce.thunar
|
2018-06-05 22:55:07 -06:00
|
|
|
|
|
|
|
|
|
# Appearance
|
|
|
|
|
numix-icon-theme-circle
|
|
|
|
|
gnome3.adwaita-icon-theme
|
|
|
|
|
hicolor-icon-theme
|
2018-06-17 05:36:38 -06:00
|
|
|
|
plasma5.breeze-gtk
|
|
|
|
|
plasma5.breeze-qt5
|
2018-06-18 18:12:26 -06:00
|
|
|
|
gnome-breeze
|
2018-06-05 22:55:07 -06:00
|
|
|
|
|
|
|
|
|
# Desktop
|
2018-06-18 18:12:26 -06:00
|
|
|
|
# haskellPackages.status-notifier-item
|
2018-06-05 22:55:07 -06:00
|
|
|
|
autorandr
|
2018-06-17 04:01:41 -06:00
|
|
|
|
clipit-master
|
2018-06-05 22:55:07 -06:00
|
|
|
|
compton
|
|
|
|
|
feh
|
2018-06-17 04:02:10 -06:00
|
|
|
|
gnome3.gpaste
|
2018-06-18 21:54:39 -06:00
|
|
|
|
kdeconnect
|
2018-06-26 22:55:26 -06:00
|
|
|
|
libnotify
|
2018-07-10 01:04:26 -06:00
|
|
|
|
# XXX: renable this
|
|
|
|
|
# lxqt.lxqt-powermanagement
|
2018-06-05 22:55:07 -06:00
|
|
|
|
networkmanagerapplet
|
2018-07-08 02:43:59 -06:00
|
|
|
|
customizable-notify-osd
|
2018-06-18 18:12:26 -06:00
|
|
|
|
pasystray-appindicator
|
2018-06-05 22:55:07 -06:00
|
|
|
|
pinentry
|
|
|
|
|
pommed_light
|
|
|
|
|
rofi
|
|
|
|
|
rofi-pass
|
2018-07-04 17:27:39 -06:00
|
|
|
|
skippy-xd
|
2018-06-18 15:09:15 -06:00
|
|
|
|
synergy
|
2018-06-14 21:50:02 -06:00
|
|
|
|
udiskie-appindicator
|
2018-06-05 22:55:07 -06:00
|
|
|
|
volnoti
|
|
|
|
|
xclip
|
|
|
|
|
xdotool
|
|
|
|
|
xorg.xkbcomp
|
|
|
|
|
xsettingsd
|
|
|
|
|
|
|
|
|
|
# Audio
|
|
|
|
|
pulsemixer
|
|
|
|
|
pavucontrol
|
|
|
|
|
playerctl
|
|
|
|
|
|
|
|
|
|
# Haskell
|
|
|
|
|
cabal-install
|
|
|
|
|
cabal2nix
|
|
|
|
|
ghc
|
|
|
|
|
stack
|
|
|
|
|
|
2018-07-10 01:04:26 -06:00
|
|
|
|
# Scala
|
|
|
|
|
sbt
|
|
|
|
|
scala
|
|
|
|
|
|
2018-06-05 22:55:07 -06:00
|
|
|
|
# Tools
|
2018-07-07 22:45:02 -06:00
|
|
|
|
bazaar
|
2018-06-05 22:55:07 -06:00
|
|
|
|
binutils
|
2018-06-19 23:30:58 -06:00
|
|
|
|
dfeet
|
2018-06-05 22:55:07 -06:00
|
|
|
|
gcc
|
2018-06-25 19:28:04 -06:00
|
|
|
|
gdb
|
2018-07-10 01:04:26 -06:00
|
|
|
|
gitAndTools.git-sync
|
2018-07-07 22:45:02 -06:00
|
|
|
|
gitAndTools.git-fame
|
|
|
|
|
gitAndTools.hub
|
|
|
|
|
gitFull
|
2018-06-05 22:55:07 -06:00
|
|
|
|
gnumake
|
|
|
|
|
gnupg
|
|
|
|
|
htop
|
2018-06-14 16:16:17 -06:00
|
|
|
|
inotify-tools
|
2018-06-19 23:51:49 -06:00
|
|
|
|
ispell
|
2018-07-10 01:04:26 -06:00
|
|
|
|
mercurial
|
2018-06-05 22:55:07 -06:00
|
|
|
|
ncdu
|
2018-06-19 23:51:49 -06:00
|
|
|
|
neofetch
|
2018-06-05 22:55:07 -06:00
|
|
|
|
pass
|
2018-06-18 21:54:39 -06:00
|
|
|
|
plasma-workspace
|
2018-06-20 15:08:03 -06:00
|
|
|
|
powertop
|
2018-06-05 22:55:07 -06:00
|
|
|
|
python-with-my-packages
|
2018-06-17 05:36:38 -06:00
|
|
|
|
qt5.qttools
|
2018-06-05 22:55:07 -06:00
|
|
|
|
rcm
|
2018-06-19 23:30:58 -06:00
|
|
|
|
scrot
|
2018-06-05 22:55:07 -06:00
|
|
|
|
silver-searcher
|
|
|
|
|
stow
|
|
|
|
|
tmux
|
2018-07-04 17:27:39 -06:00
|
|
|
|
valgrind
|
2018-06-05 22:55:07 -06:00
|
|
|
|
wget
|
2018-06-16 20:17:57 -06:00
|
|
|
|
wmctrl
|
2018-07-11 21:14:53 -06:00
|
|
|
|
xorg.xev
|
2018-06-05 22:55:07 -06:00
|
|
|
|
zsh
|
|
|
|
|
|
2018-06-14 16:16:17 -06:00
|
|
|
|
# Nix
|
|
|
|
|
nix-prefetch-git
|
|
|
|
|
|
2018-06-05 22:55:07 -06:00
|
|
|
|
# Miscellaneous
|
2018-06-14 16:16:17 -06:00
|
|
|
|
android-udev-rules
|
2018-06-05 22:55:07 -06:00
|
|
|
|
librsvg
|
2018-06-14 17:04:36 -06:00
|
|
|
|
transmission-gtk
|
2018-06-05 22:55:07 -06:00
|
|
|
|
];
|
|
|
|
|
|
2018-06-14 18:28:48 -06:00
|
|
|
|
environment.variables = {
|
|
|
|
|
GDK_PIXBUF_MODULE_FILE = "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache";
|
|
|
|
|
};
|
|
|
|
|
|
2018-06-05 22:55:07 -06:00
|
|
|
|
programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
|
2018-06-18 21:54:39 -06:00
|
|
|
|
# Enabling zsh will clobber path because of the way it sets up /etc/zshenv
|
|
|
|
|
# programs.zsh.enable = true;
|
|
|
|
|
# Instead we just make sure to source profile from zsh
|
|
|
|
|
environment.etc."zshenv".text =
|
|
|
|
|
''
|
|
|
|
|
if [ -n "$__ETC_PROFILE_DONE" ]; then return; fi
|
|
|
|
|
source /etc/profile
|
|
|
|
|
'';
|
2018-06-05 22:55:07 -06:00
|
|
|
|
services.openssh.enable = true;
|
2018-06-18 14:24:45 -06:00
|
|
|
|
services.avahi = {
|
|
|
|
|
enable = true;
|
|
|
|
|
nssmdns = true;
|
|
|
|
|
publish = {
|
|
|
|
|
enable = true;
|
|
|
|
|
domain = true;
|
|
|
|
|
userServices = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
2018-07-11 21:14:18 -06:00
|
|
|
|
services.kbfs.enable = true;
|
2018-06-05 22:55:07 -06:00
|
|
|
|
sound.enable = true;
|
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
|
exportConfiguration = true;
|
|
|
|
|
enable = true;
|
|
|
|
|
layout = "us";
|
|
|
|
|
desktopManager = {
|
|
|
|
|
gnome3.enable = true;
|
|
|
|
|
default = "none";
|
|
|
|
|
};
|
|
|
|
|
windowManager = {
|
|
|
|
|
default = "xmonad";
|
|
|
|
|
i3.enable = true;
|
|
|
|
|
session = [{
|
|
|
|
|
name = "xmonad";
|
|
|
|
|
start = ''
|
|
|
|
|
/usr/bin/env imalison-xmonad &
|
|
|
|
|
waitPID=$!
|
|
|
|
|
'';
|
|
|
|
|
}];
|
|
|
|
|
};
|
|
|
|
|
displayManager = {
|
|
|
|
|
# lightdm = {
|
|
|
|
|
# enable = true;
|
|
|
|
|
# extraSeatDefaults=''
|
|
|
|
|
# greeter-hide-users=false
|
|
|
|
|
# '';
|
|
|
|
|
# };
|
|
|
|
|
sddm = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
2018-06-14 18:28:48 -06:00
|
|
|
|
sessionCommands = ''
|
|
|
|
|
systemctl --user import-environment GDK_PIXBUF_MODULE_FILE
|
|
|
|
|
'';
|
2018-06-05 22:55:07 -06:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
2018-06-26 22:55:26 -06:00
|
|
|
|
users.extraUsers = let
|
2018-06-05 22:55:07 -06:00
|
|
|
|
extraGroups = [
|
|
|
|
|
"wheel" "disk" "audio" "video"
|
|
|
|
|
"networkmanager" "systemd-journal"
|
|
|
|
|
];
|
2018-06-26 22:55:26 -06:00
|
|
|
|
userDefaults = {
|
|
|
|
|
inherit extraGroups;
|
|
|
|
|
group = "users";
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
createHome = true;
|
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
|
};
|
|
|
|
|
in {
|
|
|
|
|
imalison = userDefaults // {
|
|
|
|
|
name = "imalison";
|
|
|
|
|
uid = 1000;
|
|
|
|
|
home = "/home/imalison";
|
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
|
};
|
|
|
|
|
kat = userDefaults // {
|
|
|
|
|
name = "kat";
|
|
|
|
|
uid = 1001;
|
|
|
|
|
home = "/home/kat";
|
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
|
};
|
2018-06-05 22:55:07 -06:00
|
|
|
|
};
|
|
|
|
|
|
2018-07-10 01:04:26 -06:00
|
|
|
|
system.nixos.stateVersion = "18.03";
|
2018-06-05 22:55:07 -06:00
|
|
|
|
}
|